Class PerPartitionCategorization
java.lang.Object
co.elastic.clients.elasticsearch.ml.PerPartitionCategorization
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class PerPartitionCategorization
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PerPartitionCategorization>Json deserializer forPerPartitionCategorization -
Method Summary
Modifier and TypeMethodDescriptionfinal Booleanenabled()To enable this setting, you must also set thepartition_field_nameproperty to the same value in every detector that uses the keywordmlcategory.static PerPartitionCategorizationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupPerPartitionCategorizationDeserializer(ObjectDeserializer<PerPartitionCategorization.Builder> op) final BooleanThis setting can be set to true only if per-partition categorization is enabled.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forPerPartitionCategorization
-
-
Method Details
-
of
public static PerPartitionCategorization of(Function<PerPartitionCategorization.Builder, ObjectBuilder<PerPartitionCategorization>> fn) -
enabled
To enable this setting, you must also set thepartition_field_nameproperty to the same value in every detector that uses the keywordmlcategory. Otherwise, job creation fails.API name:
enabled -
stopOnWarn
This setting can be set to true only if per-partition categorization is enabled. If true, both categorization and subsequent anomaly detection stops for partitions where the categorization status changes to warn. This setting makes it viable to have a job where it is expected that categorization works well for some partitions but not others; you do not pay the cost of bad categorization forever in the partitions where it works badly.API name:
stop_on_warn -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupPerPartitionCategorizationDeserializer
protected static void setupPerPartitionCategorizationDeserializer(ObjectDeserializer<PerPartitionCategorization.Builder> op)
-