UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 13.6 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/ts-loader/index.js!/data/src/model/OnmsAlarm.ts","dependencies":[{"path":"/data/src/model/OnmsAlarm.ts","mtime":1553611371628},{"path":"/data/node_modules/typescript-logging/dist/commonjs/typescript-logging.d.ts","mtime":1553611387808},{"path":"/data/node_modules/typescript-logging/dist/commonjs/control/LogGroupControl.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/control/CategoryServiceControl.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/MessagesToExtensionJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/MessagesFromExtensionJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/ExtensionMessageJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/ExtensionHelper.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/AbstractCategoryLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/LoggerOptions.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryService.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryConsoleLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryDelegateLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryMessageBufferImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/Logger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactory.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactoryService.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactoryRuntimeSettings.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/AbstractLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/ConsoleLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/MessageBufferLoggerImpl.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/DataStructures.d.ts","mtime":1553611387936},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/JSONHelper.d.ts","mtime":1553611387936},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/MessageUtils.d.ts","mtime":1553611387936},{"path":"/data/node_modules/moment/moment.d.ts","mtime":1553611386704},{"path":"/data/node_modules/axios/index.d.ts","mtime":1553611386356},{"path":"/data/typings/index.d.ts","mtime":1553611371628},{"path":"/data/node_modules/@types/fs-extra/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/node/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/node/inspector.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/glob/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/minimatch/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/handlebars/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/highlight.js/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/jest/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/jquery/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/lodash/index.d.ts","mtime":1553611386320},{"path":"/data/node_modules/@types/lodash/common/common.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/array.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/collection.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/date.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/function.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/lang.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/math.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/number.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/object.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/seq.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/string.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/util.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/marked/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/shelljs/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/urijs/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/typescript/lib/lib.es2015.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.core.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.collection.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.generator.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.promise.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.iterable.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.symbol.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.proxy.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.reflect.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es5.d.ts","mtime":1553611387388},{"path":"/data/node_modules/typescript/lib/lib.dom.d.ts","mtime":1553611387384},{"path":"/data/node_modules/moment/moment.d.ts","mtime":1553611386704},{"path":"/data/src/api/IHasUrlValue.ts","mtime":1553611371624},{"path":"/data/src/model/OnmsAlarmType.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsAlarmSummary.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsEvent.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsParm.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsServiceType.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsSeverity.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsTroubleTicketState.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsMemo.ts","mtime":1553611371628},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992},{"path":"/data/node_modules/ts-loader/index.js","mtime":1553611386824}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Represents an OpenNMS alarm.\n * @module OnmsAlarm\n */\n\nvar OnmsAlarm = function () {\n function OnmsAlarm() {\n _classCallCheck(this, OnmsAlarm);\n }\n\n _createClass(OnmsAlarm, [{\n key: \"lastEventTime\",\n\n /** the most recent time the event has triggered this alarm */\n get: function get() {\n if (this.lastEvent && this.lastEvent.time) {\n return this.lastEvent.time;\n }\n return undefined;\n }\n /** whether the alarm is a situation */\n\n }, {\n key: \"isSituation\",\n get: function get() {\n return this.relatedAlarms && this.relatedAlarms.length > 0;\n }\n }, {\n key: \"urlValue\",\n get: function get() {\n return String(this.id);\n }\n }]);\n\n return OnmsAlarm;\n}();\n\nexports.OnmsAlarm = OnmsAlarm;",{"version":3,"file":"/data/src/model/OnmsAlarm.ts","sourceRoot":"","sources":["/data/src/model/OnmsAlarm.ts"],"names":[],"mappings":";;;;;;;AAYA,AAGG,AACH;;;;;;;;;;;;;AA2FE,AAA8D,AAC9D,AAAW,AAAa;;AACtB,AAAE,AAAC,gBAAC,AAAI,KAAC,AAAS,aAAI,AAAI,KAAC,AAAS,UAAC,AAAI,AAAC,MAAC,AAAC;AAC1C,AAAM,uBAAC,AAAI,KAAC,AAAS,UAAC,AAAI,AAAC,AAC7B;AAAC;AACD,AAAM,mBAAC,AAAS,AAAC,AACnB;AAAC;AAKD,AAAuC,AACvC,AAAW,AAAW;;;;;AACpB,AAAM,mBAAC,AAAI,KAAC,AAAa,iBAAI,AAAI,KAAC,AAAa,cAAC,AAAM,SAAG,AAAC,AAAC,AAC7D;AAAC,AAED,AAAW,AAAQ;;;;AACjB,AAAM,mBAAC,AAAM,OAAC,AAAI,KAAC,AAAE,AAAC,AAAC,AACzB;AAAC,AAEF;;;;;;AA/GD,oBA+GC","sourcesContent":["import {Moment} from 'moment';\n\nimport {IHasUrlValue} from '../api/IHasUrlValue';\nimport {OnmsAlarmType} from './OnmsAlarmType';\nimport {OnmsAlarmSummary} from './OnmsAlarmSummary';\nimport {OnmsEvent} from './OnmsEvent';\nimport {OnmsParm} from './OnmsParm';\nimport {OnmsServiceType} from './OnmsServiceType';\nimport {OnmsSeverity} from './OnmsSeverity';\nimport {OnmsTroubleTicketState} from './OnmsTroubleTicketState';\nimport {OnmsMemo} from './OnmsMemo';\n\n/**\n * Represents an OpenNMS alarm.\n * @module OnmsAlarm\n */\nexport class OnmsAlarm implements IHasUrlValue {\n /** the alarm ID */\n public id: number;\n\n /** the number of times this alarm has triggered */\n public count: number;\n\n /** the user that acknowledged this alarm */\n public ackUser: string;\n\n /** the time this alarm was acknowledged */\n public ackTime: Moment;\n\n /** the UEI of the event associated with this alarm */\n public uei: string;\n\n /** the alarm's severity */\n public severity: OnmsSeverity;\n\n /** the alarm's type */\n public type: OnmsAlarmType;\n\n /** the alarm's description */\n public description: string;\n\n /** the first time an event has triggered this alarm */\n public firstEventTime: Moment;\n\n /** the most recent event that triggered this alarm */\n public lastEvent: OnmsEvent;\n\n /** the alarm's log message */\n public logMessage: string;\n\n /** which location the alarm originated from */\n public location: string;\n\n /** the alarm's reduction key */\n public reductionKey: string;\n\n /** the trouble ticket ID associated with this alarm */\n public troubleTicket: string;\n\n /** the state of the trouble ticket associated with this alarm */\n public troubleTicketState: OnmsTroubleTicketState;\n\n /** the link to the trouble ticket system if defined */\n public troubleTicketLink: string;\n\n /** the node's ID associated with this alarm */\n public nodeId: number;\n\n /** the node's label associated with this alarm */\n public nodeLabel: string;\n\n /** the service associated with the event */\n public service: OnmsServiceType;\n\n /** when the alarm was suppressed */\n public suppressedTime: Moment;\n\n /** when the alarm will stop being suppressed */\n public suppressedUntil: Moment;\n\n /** who the alarm was suppressed by */\n public suppressedBy: string;\n\n /** the parameters emitted with this alarm's event */\n public parameters: OnmsParm[];\n\n /** relatedAlarms - A list of alarms related to this alarm/situation */\n public relatedAlarms: OnmsAlarmSummary[];\n\n /** managedObjectType - the type associated with this alarm if it is a situation */\n public managedObjectType: string;\n\n /** managedObjectInstance - the instance associated with this alarm if it is a situation */\n public managedObjectInstance: string;\n\n /** sticky memo - a note associated with this specific alarm instance */\n public sticky: OnmsMemo;\n\n /** journal memo - a note associated with the reduction key for this alarm */\n public journal: OnmsMemo;\n\n /** operator instructions */\n public operatorInstructions: string;\n\n /** If this alarm is a Situation, the number of Nodes affected by its RelatedAlarms, a value of 1 otherwise */\n public affectedNodeCount: number;\n\n /** the most recent time the event has triggered this alarm */\n public get lastEventTime() {\n if (this.lastEvent && this.lastEvent.time) {\n return this.lastEvent.time;\n }\n return undefined;\n }\n\n /** link to the alarm details page on the source instance */\n public detailsPage: string;\n\n /** whether the alarm is a situation */\n public get isSituation() {\n return this.relatedAlarms && this.relatedAlarms.length > 0;\n }\n\n public get urlValue() {\n return String(this.id);\n }\n\n}\n"]}]}