Permalink
Browse files

feat(dao): Include troubleTicketLink if defined (JS-23)

  • Loading branch information...
mvrueden committed Aug 29, 2017
1 parent 0ea573f commit 74202182ef61832c1bc723dcb194d3355ca92409
Showing with 4 additions and 0 deletions.
  1. +1 −0 src/dao/AlarmDAO.ts
  2. +3 −0 src/model/OnmsAlarm.ts
View
@@ -324,6 +324,7 @@ export class AlarmDAO extends AbstractDAO<number, OnmsAlarm> {
alarm.logMessage = data.logMessage;
alarm.reductionKey = data.reductionKey;
alarm.troubleTicket = data.troubleTicket;
alarm.troubleTicketLink = data.troubleTicketLink;
alarm.nodeId = this.toNumber(data.nodeId);
alarm.nodeLabel = data.nodeLabel;
alarm.suppressedBy = data.suppressedBy;
View
@@ -55,6 +55,9 @@ export class OnmsAlarm {
/** the state of the trouble ticket associated with this alarm */
public troubleTicketState: OnmsTroubleTicketState;
/** the link to the trouble ticket system if defined */
public troubleTicketLink: string;
/** the node's ID associated with this alarm */
public nodeId: number;

0 comments on commit 7420218

Please sign in to comment.