UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

26 lines (22 loc) 657 B
import {IHasUrlValue} from '../api/IHasUrlValue'; import {OnmsEnum} from '../internal/OnmsEnum'; /** * Represents an OpenNMS alarm type. * @module OnmsAlarmType */ export class OnmsAlarmType extends OnmsEnum<number> implements IHasUrlValue { public get urlValue() { return String(this.id); } } const AlarmTypes = { /** Possible Resolution */ 1: new OnmsAlarmType(1, 'possible resolution'), /** Resolution Event */ 2: new OnmsAlarmType(2, 'resolution event'), /** No Possible Resolution */ 3: new OnmsAlarmType(3, 'no possible resolution'), }; /** @hidden */ const frozen = Object.freeze(AlarmTypes); export {frozen as AlarmTypes};