Class PerPartitionCategorization
java.lang.Object
co.elastic.clients.elasticsearch.ml.PerPartitionCategorization
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class PerPartitionCategorization extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PerPartitionCategorization.Builder
Builder forPerPartitionCategorization
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PerPartitionCategorization>
_DESERIALIZER
Json deserializer forPerPartitionCategorization
-
Method Summary
Modifier and Type Method Description java.lang.Boolean
enabled()
To enable this setting, you must also set thepartition_field_name
property to the same value in every detector that uses the keywordmlcategory
.static PerPartitionCategorization
of(java.util.function.Function<PerPartitionCategorization.Builder,ObjectBuilder<PerPartitionCategorization>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPerPartitionCategorizationDeserializer(ObjectDeserializer<PerPartitionCategorization.Builder> op)
java.lang.Boolean
stopOnWarn()
This setting can be set to true only if per-partition categorization is enabled.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forPerPartitionCategorization
-
-
Method Details
-
of
public static PerPartitionCategorization of(java.util.function.Function<PerPartitionCategorization.Builder,ObjectBuilder<PerPartitionCategorization>> fn) -
enabled
@Nullable public final java.lang.Boolean enabled()To enable this setting, you must also set thepartition_field_name
property to the same value in every detector that uses the keywordmlcategory
. Otherwise, job creation fails.API name:
enabled
-
stopOnWarn
@Nullable public final 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupPerPartitionCategorizationDeserializer
protected static void setupPerPartitionCategorizationDeserializer(ObjectDeserializer<PerPartitionCategorization.Builder> op)
-