Class RuleCondition

java.lang.Object
co.elastic.clients.elasticsearch.ml.RuleCondition
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public final class RuleCondition
extends java.lang.Object
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • appliesTo

      public AppliesTo appliesTo()
      Required - Specifies the result property to which the condition applies. If your detector uses lat_long, metric, rare, or freq_rare functions, you can only specify conditions that apply to time.

      API name: applies_to

    • operator

      public ConditionOperator operator()
      Required - Specifies the condition operator. The available options are greater than, greater than or equals, less than, and less than or equals.

      API name: operator

    • value

      public double value()
      Required - The value that is compared against the applies_to field using the operator.

      API name: value

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupRuleConditionDeserializer

      protected static void setupRuleConditionDeserializer​(DelegatingDeserializer<RuleCondition.Builder> op)