Class RuleCondition
java.lang.Object
co.elastic.clients.elasticsearch.ml.RuleCondition
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RuleCondition>Json deserializer forRuleCondition -
Method Summary
Modifier and TypeMethodDescriptionfinal AppliesToRequired - Specifies the result property to which the condition applies.static RuleConditionfinal 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 voidtoString()final doublevalue()Required - The value that is compared against theapplies_tofield using the operator.
-
Field Details
-
_DESERIALIZER
Json deserializer forRuleCondition
-
-
Method Details
-
of
-
appliesTo
Required - Specifies the result property to which the condition applies. If your detector useslat_long,metric,rare, orfreq_rarefunctions, 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 final 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
-
toString
-
setupRuleConditionDeserializer
-