Skip to content
Permalink
Browse files

feat(api): Move from 'impacts/causes' to 'relatedAlarms'

  • Loading branch information...
smith-opennms committed Jun 11, 2018
1 parent fa62503 commit 3bc5b6e18208aa458dcfc9af5949e0976ff7c0ca
Showing with 3 additions and 7 deletions.
  1. +1 −2 src/dao/AlarmDAO.ts
  2. +2 −5 src/model/OnmsAlarm.ts
@@ -393,8 +393,7 @@ export class AlarmDAO extends AbstractDAO<number, OnmsAlarm> {
}
}

alarm.causes = data.causes;
alarm.impacts = data.impacts;
alarm.relatedAlarms = data.relatedAlarms;

alarm.sticky = this.toMemo(data.stickyMemo);
alarm.journal = this.toMemo(data.reductionKeyMemo);
@@ -84,11 +84,8 @@ export class OnmsAlarm implements IHasUrlValue {
/** the parameters emitted with this alarm's event */
public parameters: OnmsParm[];

/** impacts - A list of alarms impacted by this alarm */
public impacts: OnmsAlarmSummary[];

/** causes - A list of alarms that cause this alarm */
public causes: OnmsAlarmSummary[];
/** relatedAlarms - A list of alarms related to this alarm/situation */
public relatedAlarms: OnmsAlarmSummary[];

/** sticky memo - a note associated with this specific alarm instance */
public sticky: OnmsMemo;

0 comments on commit 3bc5b6e

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