Class PerPartitionCategorization
java.lang.Object
co.elastic.clients.elasticsearch.ml.PerPartitionCategorization
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class PerPartitionCategorization extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPerPartitionCategorization.BuilderBuilder forPerPartitionCategorization. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PerPartitionCategorization>_DESERIALIZERJson deserializer forPerPartitionCategorization -
Constructor Summary
Constructors Constructor Description PerPartitionCategorization(PerPartitionCategorization.Builder builder)PerPartitionCategorization(java.util.function.Function<PerPartitionCategorization.Builder,PerPartitionCategorization.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Booleanenabled()To enable this setting, you must also set thepartition_field_nameproperty to the same value in every detector that uses the keywordmlcategory.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPerPartitionCategorizationDeserializer(DelegatingDeserializer<PerPartitionCategorization.Builder> op)java.lang.BooleanstopOnWarn()This setting can be set to true only if per-partition categorization is enabled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPerPartitionCategorization
-
-
Constructor Details
-
PerPartitionCategorization
-
PerPartitionCategorization
public PerPartitionCategorization(java.util.function.Function<PerPartitionCategorization.Builder,PerPartitionCategorization.Builder> fn)
-
-
Method Details
-
enabled
@Nullable public java.lang.Boolean 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
@Nullable public java.lang.Boolean 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
-
setupPerPartitionCategorizationDeserializer
protected static void setupPerPartitionCategorizationDeserializer(DelegatingDeserializer<PerPartitionCategorization.Builder> op)
-