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