java.lang.Object
org.elasticsearch.xpack.core.watcher.condition.ConditionRegistry

public class ConditionRegistry extends Object
  • Constructor Details

  • 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 watch
      parser - The parsing that contains the condition content
      Throws:
      IOException