Class AlertAction
- java.lang.Object
-
- com.floragunn.signals.watch.action.invokers.ActionInvoker
-
- com.floragunn.signals.watch.action.invokers.AlertAction
-
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
public class AlertAction extends ActionInvoker
-
-
Field Summary
Fields Modifier and Type Field Description protected SeverityLevel.SetseverityLevelsprotected com.floragunn.searchsupport.util.temporal.DurationExpressionthrottlePeriod-
Fields inherited from class com.floragunn.signals.watch.action.invokers.ActionInvoker
checks, foreach, foreachLimit, handler, name
-
-
Constructor Summary
Constructors Constructor Description AlertAction(String name, ActionHandler handler, com.floragunn.searchsupport.util.temporal.DurationExpression throttlePeriod, SeverityLevel.Set severityLevels, List<Check> checks, InlinePainlessScript<SignalsObjectFunctionScript.Factory> foreach, Integer foreachLimit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlertActioncreate(WatchInitializationService watchInitService, com.fasterxml.jackson.databind.node.ObjectNode jsonObject, SeverityMapping severityMapping)static List<AlertAction>createFromArray(WatchInitializationService ctx, com.fasterxml.jackson.databind.node.ArrayNode arrayNode, SeverityMapping severityMapping)SeverityLevel.SetgetSeverityLevels()com.floragunn.searchsupport.util.temporal.DurationExpressiongetThrottlePeriod()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)-
Methods inherited from class com.floragunn.signals.watch.action.invokers.ActionInvoker
createNestedChecks, execute, getChecks, getForeach, getForeachLimit, getHandler, getName, toJson, toString
-
-
-
-
Field Detail
-
throttlePeriod
protected final com.floragunn.searchsupport.util.temporal.DurationExpression throttlePeriod
-
severityLevels
protected final SeverityLevel.Set severityLevels
-
-
Constructor Detail
-
AlertAction
public AlertAction(String name, ActionHandler handler, com.floragunn.searchsupport.util.temporal.DurationExpression throttlePeriod, SeverityLevel.Set severityLevels, List<Check> checks, InlinePainlessScript<SignalsObjectFunctionScript.Factory> foreach, Integer foreachLimit)
-
-
Method Detail
-
getThrottlePeriod
public com.floragunn.searchsupport.util.temporal.DurationExpression getThrottlePeriod()
-
getSeverityLevels
public SeverityLevel.Set getSeverityLevels()
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
create
public static AlertAction create(WatchInitializationService watchInitService, com.fasterxml.jackson.databind.node.ObjectNode jsonObject, SeverityMapping severityMapping) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
createFromArray
public static List<AlertAction> createFromArray(WatchInitializationService ctx, com.fasterxml.jackson.databind.node.ArrayNode arrayNode, SeverityMapping severityMapping) throws com.floragunn.searchsupport.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.config.validation.ConfigValidationException
-
-