Class PerPartitionCategorization.Builder
java.lang.Object
co.elastic.clients.elasticsearch.ml.PerPartitionCategorization.Builder
- All Implemented Interfaces:
ObjectBuilder<PerPartitionCategorization>
- Enclosing class:
- PerPartitionCategorization
public static class PerPartitionCategorization.Builder extends java.lang.Object implements ObjectBuilder<PerPartitionCategorization>
Builder for
PerPartitionCategorization.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PerPartitionCategorizationbuild()Builds aPerPartitionCategorization.PerPartitionCategorization.Builderenabled(java.lang.Boolean value)To enable this setting, you must also set thepartition_field_nameproperty to the same value in every detector that uses the keywordmlcategory.PerPartitionCategorization.BuilderstopOnWarn(java.lang.Boolean value)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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
build
Builds aPerPartitionCategorization.- Specified by:
buildin interfaceObjectBuilder<PerPartitionCategorization>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-