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 String
decorateMessageBody(String body)
protected String
decorateMessageSubject(String subject)
protected String
formatWebhookErrorResponse(int statusCode, String contents)
protected String
getChannelPropertyName()
protected String
getIconEmojiPropertyName()
protected String
getIconUrlPropertyName()
protected String
getUrlPropertyName()
protected String
getUsernamePropertyName()
protected String
getUseSystemProxyPropertyName()
-
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:
decorateMessageSubject
in classAbstractSlackCompatibleNotificationStrategy
-
getUrlPropertyName
protected String getUrlPropertyName()
- Specified by:
getUrlPropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
getUsernamePropertyName
protected String getUsernamePropertyName()
- Specified by:
getUsernamePropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
getIconUrlPropertyName
protected String getIconUrlPropertyName()
- Specified by:
getIconUrlPropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
getIconEmojiPropertyName
protected String getIconEmojiPropertyName()
- Specified by:
getIconEmojiPropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
getChannelPropertyName
protected String getChannelPropertyName()
- Specified by:
getChannelPropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
getUseSystemProxyPropertyName
protected String getUseSystemProxyPropertyName()
- Specified by:
getUseSystemProxyPropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
decorateMessageBody
protected String decorateMessageBody(String body)
- Specified by:
decorateMessageBody
in classAbstractSlackCompatibleNotificationStrategy
-
formatWebhookErrorResponse
protected String formatWebhookErrorResponse(int statusCode, String contents)
- Specified by:
formatWebhookErrorResponse
in classAbstractSlackCompatibleNotificationStrategy
-
-