-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correlation PoC Extend OnmsAlarm type with 'impacts' and 'causes'
- Loading branch information
1 parent
e1083c3
commit fa62503
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import {Moment} from 'moment'; | ||
|
||
import {IHasUrlValue} from '../api/IHasUrlValue'; | ||
import {OnmsAlarmType} from './OnmsAlarmType'; | ||
import {OnmsSeverity} from './OnmsSeverity'; | ||
|
||
/** | ||
* Represents an OpenNMS alarm. | ||
* @module OnmsAlarm | ||
*/ | ||
export class OnmsAlarmSummary implements IHasUrlValue { | ||
/** the alarm ID */ | ||
public id: number; | ||
|
||
/** the alarm's reduction key */ | ||
public reductionKey: string; | ||
|
||
/** the alarm's type */ | ||
public type: OnmsAlarmType; | ||
|
||
/** the alarm's severity */ | ||
public severity: OnmsSeverity; | ||
|
||
/** the alarm's description */ | ||
public description: string; | ||
|
||
public get urlValue() { | ||
return String(this.id); | ||
} | ||
} |