Skip to content
Permalink
Browse files

feat(alarms): HELM-110: store managedObject* if present

  • Loading branch information...
RangerRick committed Nov 27, 2018
1 parent 42d7a58 commit 2b8672297bf7897231195595d941659b1efdd3b7
Showing with 9 additions and 0 deletions.
  1. +3 −0 src/dao/AlarmDAO.ts
  2. +6 −0 src/model/OnmsAlarm.ts
@@ -395,6 +395,9 @@ export class AlarmDAO extends AbstractDAO<number, OnmsAlarm> {

alarm.relatedAlarms = data.relatedAlarms;

alarm.managedObjectType = data.managedObjectType;
alarm.managedObjectInstance = data.managedObjectInstance;

alarm.sticky = this.toMemo(data.stickyMemo);
alarm.journal = this.toMemo(data.reductionKeyMemo);

@@ -87,6 +87,12 @@ export class OnmsAlarm implements IHasUrlValue {
/** relatedAlarms - A list of alarms related to this alarm/situation */
public relatedAlarms: OnmsAlarmSummary[];

/** managedObjectType - the type associated with this alarm if it is a situation */
public managedObjectType: string;

/** managedObjectInstance - the instance associated with this alarm if it is a situation */
public managedObjectInstance: string;

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

0 comments on commit 2b86722

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