Skip to content

Commit

Permalink
feat(dao): Include troubleTicketLink if defined (JS-23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus von Rüden committed Aug 29, 2017
1 parent 0ea573f commit 7420218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dao/AlarmDAO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/model/OnmsAlarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7420218

Please sign in to comment.