UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 12.7 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/ts-loader/index.js!/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/model/OnmsNode.ts","dependencies":[{"path":"/data/src/model/OnmsNode.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/OnmsCategory.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsNodeLabelSource.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsNodeType.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsIpInterface.ts","mtime":1553611371628},{"path":"/data/src/model/OnmsSnmpInterface.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},{"path":"/data/node_modules/tslint-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 node.\n * @module OnmsNode\n */\n\nvar OnmsNode = function () {\n function OnmsNode() {\n _classCallCheck(this, OnmsNode);\n\n /** the LLDP element associated with this node */\n // public lldpElement: LldpElement;\n /** the OSPF element associated with this node */\n // public ospfElement: OspfElement;\n /** the IsIs element associated with this node */\n // public isisElement: IsIsElement;\n /** the CDP element associated with this node */\n // public cdpElement: CdpElement;\n /** the path element associated with this node */\n // public pathElement: PathElement;\n /** the SNMP interfaces on this node */\n this.snmpInterfaces = [];\n /** the IP interfaces on this node */\n this.ipInterfaces = [];\n /** the categories the node is in */\n this.categories = [];\n /** the assets of the node */\n this.assets = {};\n }\n\n _createClass(OnmsNode, [{\n key: \"urlValue\",\n get: function get() {\n return String(this.id);\n }\n }]);\n\n return OnmsNode;\n}();\n\nexports.OnmsNode = OnmsNode;",{"version":3,"file":"/data/src/model/OnmsNode.ts","sourceRoot":"","sources":["/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/model/OnmsNode.ts"],"names":[],"mappings":";;;;;;;AAUA,AAGG,AACH;;;;;;AAAA;;;AAuDE,AAAiD;AACjD,AAAmC;AAEnC,AAAiD;AACjD,AAAmC;AAEnC,AAAiD;AACjD,AAAmC;AAEnC,AAAgD;AAChD,AAAiC;AAEjC,AAAiD;AACjD,AAAmC;AAEnC,AAAuC;AAChC,aAAc,iBAAG,AAAyB,AAAC;AAElD,AAAqC;AAC9B,aAAY,eAAG,AAAuB,AAAC;AAE9C,AAAoC;AAC7B,aAAU,aAAG,AAAoB,AAAC;AAEzC,AAA6B;AACtB,aAAM,SAAG,AAAS,AAAC,AAK5B;AAAC,AAHC,AAAW,AAAQ;;;;;AACjB,AAAM,mBAAC,AAAM,OAAC,AAAI,KAAC,AAAE,AAAC,AAAC,AACzB;AAAC,AACF;;;;;;AArFD,mBAqFC","sourcesContent":["import {Moment} from 'moment';\n\nimport {IHasUrlValue} from '../api/IHasUrlValue';\n\nimport {OnmsCategory} from './OnmsCategory';\nimport {OnmsNodeLabelSource} from './OnmsNodeLabelSource';\nimport {OnmsNodeType} from './OnmsNodeType';\nimport {OnmsIpInterface} from './OnmsIpInterface';\nimport {OnmsSnmpInterface} from './OnmsSnmpInterface';\n\n/**\n * Represents an OpenNMS node.\n * @module OnmsNode\n */\nexport class OnmsNode implements IHasUrlValue {\n /** the node ID */\n public id: number;\n\n /** the label (name) of the node */\n public label: string;\n\n /** how the label was set */\n public labelSource: OnmsNodeLabelSource;\n\n /** the foreign source of the node */\n public foreignSource: string;\n\n /** the foreign ID of the node */\n public foreignId: string;\n\n /** the location of the node */\n public location: string;\n\n /** the time the node was created */\n public createTime: Moment;\n\n /** the parent of this node */\n public parent: OnmsNode;\n\n /** the type of node */\n public type: OnmsNodeType;\n\n /** the SNMP sysObjectId of the node */\n public sysObjectId: string;\n\n /** the SNMP sysName of the node */\n public sysName: string;\n\n /** the SNMP sysDescription of the node */\n public sysDescription: string;\n\n /** the SNMP sysLocation of the node */\n public sysLocation: string;\n\n /** the SNMP sysContact for the node */\n public sysContact: string;\n\n /** the NETBIOS/SMB name for the node */\n public netBiosName: string;\n\n /** the NETBIOS/SMB domain for the node */\n public netBiosDomain: string;\n\n /** the operating system of the node */\n public operatingSystem: string;\n\n /** the last time this node was provisioned */\n public lastCapsdPoll: Moment;\n\n /** the LLDP element associated with this node */\n // public lldpElement: LldpElement;\n\n /** the OSPF element associated with this node */\n // public ospfElement: OspfElement;\n\n /** the IsIs element associated with this node */\n // public isisElement: IsIsElement;\n\n /** the CDP element associated with this node */\n // public cdpElement: CdpElement;\n\n /** the path element associated with this node */\n // public pathElement: PathElement;\n\n /** the SNMP interfaces on this node */\n public snmpInterfaces = [] as OnmsSnmpInterface[];\n\n /** the IP interfaces on this node */\n public ipInterfaces = [] as OnmsIpInterface[];\n\n /** the categories the node is in */\n public categories = [] as OnmsCategory[];\n\n /** the assets of the node */\n public assets = {} as any;\n\n public get urlValue() {\n return String(this.id);\n }\n}\n"]}]}