Class OverallBucket.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • bucketSpan

      public final OverallBucket.Builder bucketSpan​(long value)
      Required - The length of the bucket in seconds. Matches the job with the longest bucket_span value.

      API name: bucket_span

    • isInterim

      public final OverallBucket.Builder isInterim​(boolean value)
      Required - If true, this is an interim result. In other words, the results are calculated based on partial input data.

      API name: is_interim

    • jobs

      public final OverallBucket.Builder jobs​(java.util.List<OverallBucketJob> list)
      Required - An array of objects that contain the max_anomaly_score per job_id.

      API name: jobs

      Adds all elements of list to jobs.

    • jobs

      public final OverallBucket.Builder jobs​(OverallBucketJob value, OverallBucketJob... values)
      Required - An array of objects that contain the max_anomaly_score per job_id.

      API name: jobs

      Adds one or more values to jobs.

    • jobs

      public final OverallBucket.Builder jobs​(java.util.function.Function<OverallBucketJob.Builder,​ObjectBuilder<OverallBucketJob>> fn)
      Required - An array of objects that contain the max_anomaly_score per job_id.

      API name: jobs

      Adds a value to jobs using a builder lambda.

    • overallScore

      public final OverallBucket.Builder overallScore​(double value)
      Required - The top_n average of the maximum bucket anomaly_score per job.

      API name: overall_score

    • resultType

      public final OverallBucket.Builder resultType​(java.lang.String value)
      Required - Internal. This is always set to overall_bucket.

      API name: result_type

    • timestamp

      public final OverallBucket.Builder timestamp​(Time value)
      Required - The start time of the bucket for which these results were calculated.

      API name: timestamp

    • timestamp

      public final OverallBucket.Builder timestamp​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Required - The start time of the bucket for which these results were calculated.

      API name: timestamp

    • build

      public OverallBucket build()
      Builds a OverallBucket.
      Specified by:
      build in interface ObjectBuilder<OverallBucket>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.