Class PerPartitionCategorization.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PerPartitionCategorization.Builder>
co.elastic.clients.elasticsearch.ml.PerPartitionCategorization.Builder
- All Implemented Interfaces:
WithJson<PerPartitionCategorization.Builder>,ObjectBuilder<PerPartitionCategorization>
- Enclosing class:
- PerPartitionCategorization
public static class PerPartitionCategorization.Builder
extends WithJsonObjectBuilderBase<PerPartitionCategorization.Builder>
implements ObjectBuilder<PerPartitionCategorization>
Builder for
PerPartitionCategorization.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPerPartitionCategorization.To enable this setting, you must also set thepartition_field_nameproperty to the same value in every detector that uses the keywordmlcategory.protected PerPartitionCategorization.Builderself()stopOnWarn(Boolean value) This setting can be set to true only if per-partition categorization is enabled.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PerPartitionCategorization.Builder>
-
build
Builds aPerPartitionCategorization.- Specified by:
buildin interfaceObjectBuilder<PerPartitionCategorization>- Throws:
NullPointerException- if some of the required fields are null.
-