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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuleCondition.BuilderBuilder forRuleCondition. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RuleCondition>_DESERIALIZERJson deserializer forRuleCondition -
Constructor Summary
Constructors Constructor Description RuleCondition(RuleCondition.Builder builder)RuleCondition(java.util.function.Function<RuleCondition.Builder,RuleCondition.Builder> fn) -
Method Summary
Modifier and Type Method Description AppliesToappliesTo()Required - Specifies the result property to which the condition applies.ConditionOperatoroperator()Required - Specifies the condition operator.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRuleConditionDeserializer(DelegatingDeserializer<RuleCondition.Builder> op)doublevalue()Required - The value that is compared against theapplies_tofield using the operator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRuleCondition
-
-
Constructor Details
-
RuleCondition
-
RuleCondition
-
-
Method Details
-
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
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 theapplies_tofield using the operator.API name:
value -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRuleConditionDeserializer
protected static void setupRuleConditionDeserializer(DelegatingDeserializer<RuleCondition.Builder> op)
-