Package org.opennms.netmgt.notifd
Class MattermostNotificationStrategy
- java.lang.Object
-
- org.opennms.netmgt.notifd.AbstractSlackCompatibleNotificationStrategy
-
- org.opennms.netmgt.notifd.MattermostNotificationStrategy
-
- All Implemented Interfaces:
NotificationStrategy
public class MattermostNotificationStrategy extends AbstractSlackCompatibleNotificationStrategy
MattermostNotificationStrategy class.
- Version:
- $Id: $
- Author:
- Jeff Gehlbach
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description MattermostNotificationStrategy()
-
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
-
formatWebhookErrorResponse
protected java.lang.String formatWebhookErrorResponse(int statusCode, java.lang.String contents)
- Specified by:
formatWebhookErrorResponse
in classAbstractSlackCompatibleNotificationStrategy
-
decorateMessageSubject
protected java.lang.String decorateMessageSubject(java.lang.String subject)
- Specified by:
decorateMessageSubject
in classAbstractSlackCompatibleNotificationStrategy
-
decorateMessageBody
protected java.lang.String decorateMessageBody(java.lang.String body)
- Specified by:
decorateMessageBody
in classAbstractSlackCompatibleNotificationStrategy
-
getUrlPropertyName
protected java.lang.String getUrlPropertyName()
- Specified by:
getUrlPropertyName
in classAbstractSlackCompatibleNotificationStrategy
-
getUseSystemProxyPropertyName
protected java.lang.String getUseSystemProxyPropertyName()
- Specified by:
getUseSystemProxyPropertyName
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
-
-