Package org.opennms.netmgt.notifd
Class SlackNotificationStrategy
- java.lang.Object
-
- org.opennms.netmgt.notifd.AbstractSlackCompatibleNotificationStrategy
-
- org.opennms.netmgt.notifd.SlackNotificationStrategy
-
- All Implemented Interfaces:
NotificationStrategy
public class SlackNotificationStrategy extends AbstractSlackCompatibleNotificationStrategy
SlackNotificationStrategy class.
- Author:
- Jeff Gehlbach
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.notifd.AbstractSlackCompatibleNotificationStrategy
LOG
-
-
Constructor Summary
Constructors Constructor Description SlackNotificationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdecorateMessageBody(String body)protected StringdecorateMessageSubject(String subject)protected StringformatWebhookErrorResponse(int statusCode, String contents)protected StringgetChannelPropertyName()protected StringgetIconEmojiPropertyName()protected StringgetIconUrlPropertyName()protected StringgetUrlPropertyName()protected StringgetUsernamePropertyName()protected StringgetUseSystemProxyPropertyName()-
Methods inherited from class org.opennms.netmgt.notifd.AbstractSlackCompatibleNotificationStrategy
buildMessage, getChannel, getIconEmoji, getIconUrl, getUrl, getUsername, getUseSystemProxy, getValue, getValue, getValueFromSwitchOrProp, send, setArguments
-
-
-
-
Method Detail
-
decorateMessageSubject
protected String decorateMessageSubject(String subject)
- Specified by:
decorateMessageSubjectin classAbstractSlackCompatibleNotificationStrategy
-
getUrlPropertyName
protected String getUrlPropertyName()
- Specified by:
getUrlPropertyNamein classAbstractSlackCompatibleNotificationStrategy
-
getUsernamePropertyName
protected String getUsernamePropertyName()
- Specified by:
getUsernamePropertyNamein classAbstractSlackCompatibleNotificationStrategy
-
getIconUrlPropertyName
protected String getIconUrlPropertyName()
- Specified by:
getIconUrlPropertyNamein classAbstractSlackCompatibleNotificationStrategy
-
getIconEmojiPropertyName
protected String getIconEmojiPropertyName()
- Specified by:
getIconEmojiPropertyNamein classAbstractSlackCompatibleNotificationStrategy
-
getChannelPropertyName
protected String getChannelPropertyName()
- Specified by:
getChannelPropertyNamein classAbstractSlackCompatibleNotificationStrategy
-
getUseSystemProxyPropertyName
protected String getUseSystemProxyPropertyName()
- Specified by:
getUseSystemProxyPropertyNamein classAbstractSlackCompatibleNotificationStrategy
-
decorateMessageBody
protected String decorateMessageBody(String body)
- Specified by:
decorateMessageBodyin classAbstractSlackCompatibleNotificationStrategy
-
formatWebhookErrorResponse
protected String formatWebhookErrorResponse(int statusCode, String contents)
- Specified by:
formatWebhookErrorResponsein classAbstractSlackCompatibleNotificationStrategy
-
-