Class PerPartitionCategorization.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.PerPartitionCategorization.Builder
All Implemented Interfaces:
ObjectBuilder<PerPartitionCategorization>
Enclosing class:
PerPartitionCategorization

public static class PerPartitionCategorization.Builder
extends ObjectBuilderBase
implements ObjectBuilder<PerPartitionCategorization>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • enabled

      public final PerPartitionCategorization.Builder enabled​(@Nullable java.lang.Boolean value)
      To enable this setting, you must also set the partition_field_name property to the same value in every detector that uses the keyword mlcategory. Otherwise, job creation fails.

      API name: enabled

    • stopOnWarn

      public final PerPartitionCategorization.Builder stopOnWarn​(@Nullable java.lang.Boolean value)
      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

      Specified by:
      build in interface ObjectBuilder<PerPartitionCategorization>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.