Package org.opennms.netmgt.notifd
Class TicketNotificationStrategy
- java.lang.Object
-
- org.opennms.netmgt.notifd.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTicketNotificationStrategy.AlarmStateprotected static classTicketNotificationStrategy.AlarmStateRowCallbackHandler
-
Constructor Summary
Constructors Constructor Description TicketNotificationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TicketNotificationStrategy.AlarmStategetAlarmStateFromEvent(int eventID)Helper function that gets the alarmid from the eventidprotected org.opennms.netmgt.notifd.TicketNotificationStrategy.AlarmTypegetAlarmTypeFromUEI(String eventUEI)Helper function that determines the alarm type for a given UEI.StringgetName()Return an id for this notification strategyintsend(List<Argument> arguments)sendvoidsendCreateTicketEvent(int alarmID, String alarmUEI)Helper function that sends the create ticket event
-
-
-
Method Detail
-
send
public int send(List<Argument> arguments)
send
- Specified by:
sendin interfaceNotificationStrategy- Parameters:
arguments- aListobject.- 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(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
-
-