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