Class TicketNotificationStrategy

  • All Implemented Interfaces:
    NotificationStrategy

    public class TicketNotificationStrategy
    extends Object
    implements NotificationStrategy
    Invoke the trouble ticketer using notifd instead of automations. This allows tickets to be used in conjunction with path-outages and esclation paths.
    Version:
    $Id: $
    Author:
    Jesse White
    • Constructor Detail

      • TicketNotificationStrategy

        public TicketNotificationStrategy()
    • Method Detail

      • getAlarmStateFromEvent

        protected TicketNotificationStrategy.AlarmState getAlarmStateFromEvent​(int eventID)

        Helper function that gets the alarmid from the eventid

        Returns:
        0 if alarmid is null
      • getAlarmTypeFromUEI

        protected org.opennms.netmgt.notifd.TicketNotificationStrategy.AlarmType getAlarmTypeFromUEI​(String eventUEI)

        Helper function that determines the alarm type for a given UEI.

        Returns:
        0 if alarmid is null
      • sendCreateTicketEvent

        public void sendCreateTicketEvent​(int alarmID,
                                          String alarmUEI)

        Helper function that sends the create ticket event

      • getName

        public String getName()

        Return an id for this notification strategy

        Returns:
        a String object.