Class SlackAction
- java.lang.Object
-
- com.floragunn.signals.watch.common.WatchElement
-
- com.floragunn.signals.watch.action.handlers.ActionHandler
-
- com.floragunn.signals.watch.action.handlers.slack.SlackAction
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class SlackAction extends ActionHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlackAction.Factory-
Nested classes/interfaces inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
ActionHandler.FactoryRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
factoryRegistry
-
-
Constructor Summary
Constructors Constructor Description SlackAction(SlackActionConf slackActionConf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompileScripts(WatchInitializationService watchInitService)ActionExecutionResultexecute(WatchExecutionContext ctx)StringgetType()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.watch.action.handlers.ActionHandler
create, create, parseJson, toJson
-
Methods inherited from class com.floragunn.signals.watch.common.WatchElement
getChildByNameAndType, getChildByNameAndType, getChildren, getName, render, render
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SlackAction
public SlackAction(SlackActionConf slackActionConf)
-
-
Method Detail
-
compileScripts
public void compileScripts(WatchInitializationService watchInitService) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
execute
public ActionExecutionResult execute(WatchExecutionContext ctx) throws ActionExecutionException
- Specified by:
executein classActionHandler- Throws:
ActionExecutionException
-
getType
public String getType()
- Specified by:
getTypein classActionHandler
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
-