/
OnmsSituationFeedback.ts
41 lines (30 loc) · 1.06 KB
/
OnmsSituationFeedback.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import {IHasUrlValue} from '../api/IHasUrlValue';
import {OnmsSituationFeedbackType} from './OnmsSituationFeedbackType';
/**
* Represents an OpenNMS alarm.
* @module OnmsAlarm
*/
export class OnmsSituationFeedback implements IHasUrlValue {
/** the situation reduction key */
public situationKey?: string;
/** signature of situation having given set of alarms */
public fingerprint?: string;
/** the related alarm reduction key */
public alarmKey?: string;
/** the related alarm reduction key */
public feedbackType?: OnmsSituationFeedbackType;
/** the related alarm reduction key */
public reason?: string;
/** the related alarm reduction key */
public user?: string;
/** TRUE if Alarm in this Feedback is the Root Cause of the Situation in this Feedback */
public rootCause?: boolean;
/** User defined attributes relating to the Situation/Feedback */
public tags?: string[];
/** the related alarm reduction key */
public timestamp?: number;
/** @inheritdoc */
public get urlValue() {
return String(this.situationKey);
}
}