Class OverallBucket

java.lang.Object
co.elastic.clients.elasticsearch.ml.OverallBucket
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class OverallBucket
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static OverallBucket of​(java.util.function.Function<OverallBucket.Builder,​ObjectBuilder<OverallBucket>> fn)
    • bucketSpan

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

      API name: bucket_span

    • isInterim

      public final boolean isInterim()
      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 java.util.List<OverallBucketJob> jobs()
      Required - An array of objects that contain the max_anomaly_score per job_id.

      API name: jobs

    • overallScore

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

      API name: overall_score

    • resultType

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

      API name: result_type

    • timestamp

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

      API name: timestamp

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupOverallBucketDeserializer

      protected static void setupOverallBucketDeserializer​(ObjectDeserializer<OverallBucket.Builder> op)