java.lang.Object
org.elasticsearch.xpack.core.ml.job.config.DetectionRule
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class DetectionRule extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
  • Field Details

    • DETECTION_RULE_FIELD

      public static final org.elasticsearch.xcontent.ParseField DETECTION_RULE_FIELD
    • ACTIONS_FIELD

      public static final org.elasticsearch.xcontent.ParseField ACTIONS_FIELD
    • SCOPE_FIELD

      public static final org.elasticsearch.xcontent.ParseField SCOPE_FIELD
    • CONDITIONS_FIELD

      public static final org.elasticsearch.xcontent.ParseField CONDITIONS_FIELD
    • PARAMS_FIELD

      public static final org.elasticsearch.xcontent.ParseField PARAMS_FIELD
    • LENIENT_PARSER

      public static final org.elasticsearch.xcontent.ObjectParser<DetectionRule.Builder,Void> LENIENT_PARSER
    • STRICT_PARSER

      public static final org.elasticsearch.xcontent.ObjectParser<DetectionRule.Builder,Void> STRICT_PARSER
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • getActions

      public EnumSet<RuleAction> getActions()
    • getScope

      public RuleScope getScope()
    • getConditions

      public List<RuleCondition> getConditions()
    • getParams

      public RuleParams getParams()
    • extractReferencedFilters

      public Set<String> extractReferencedFilters()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object