Skip to content
Permalink
Browse files

feat(api): OCE-REST extend Alarm and summary

  • Loading branch information...
smith-opennms committed Aug 30, 2018
1 parent 8affcd8 commit e855134736566af92a1665c815ef3d1a072ecf1a
Showing with 13 additions and 0 deletions.
  1. +7 −0 src/model/OnmsAlarm.ts
  2. +6 −0 src/model/OnmsAlarmSummary.ts
@@ -110,4 +110,11 @@ export class OnmsAlarm implements IHasUrlValue {
public get urlValue() {
return String(this.id);
}

/** this alarm is contained within a Situation */
public inSituation: boolean;

/** If this alarm is a Situation, the number of Nodes affected by its RelatedAlarms, a value of 1 otherwise */
public affectedNodeCount: number;

}
@@ -24,6 +24,12 @@ export class OnmsAlarmSummary implements IHasUrlValue {
/** the alarm's description */
public description: string;

/** the alarm's log message */
public logMessage: string;

/** the label of this alarm as defined in the alarm configuration */
public label: string;

public get urlValue() {
return String(this.id);
}

0 comments on commit e855134

Please sign in to comment.
You can’t perform that action at this time.