Class TicketNotificationStrategy

  • All Implemented Interfaces:
    NotificationStrategy

    public class TicketNotificationStrategy
    extends java.lang.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

      • send

        public int send​(java.util.List<Argument> arguments)

        send

        Specified by:
        send in interface NotificationStrategy
        Parameters:
        arguments - a List object.
        Returns:
        a int.
      • 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​(java.lang.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,
                                          java.lang.String alarmUEI)

        Helper function that sends the create ticket event

      • getName

        public java.lang.String getName()

        Return an id for this notification strategy

        Returns:
        a String object.