Module org.elasticsearch.xcore
Class ConditionRegistry
java.lang.Object
org.elasticsearch.xpack.core.watcher.condition.ConditionRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseExecutable(String watchId, org.elasticsearch.xcontent.XContentParser parser) Parses the xcontent and returns the appropriate executable condition.
-
Constructor Details
-
ConditionRegistry
-
-
Method Details
-
parseExecutable
public ExecutableCondition parseExecutable(String watchId, org.elasticsearch.xcontent.XContentParser parser) throws IOException Parses the xcontent and returns the appropriate executable condition. Expecting the following format:{ "condition_type" : { ... //condition body } }- Parameters:
watchId- The id of the watchparser- The parsing that contains the condition content- Throws:
IOException
-