Class GetBucketsRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetBucketsRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class GetBucketsRequest extends RequestBase implements JsonpSerializable
Retrieves anomaly detection job results for one or more buckets. The API presents a chronological view of the records, grouped by bucket.
See Also:
  • Field Details

  • Method Details

    • of

    • anomalyScore

      @Nullable public final Double anomalyScore()
      Refer to the description for the anomaly_score query parameter.

      API name: anomaly_score

    • desc

      @Nullable public final Boolean desc()
      Refer to the description for the desc query parameter.

      API name: desc

    • end

      @Nullable public final String end()
      Refer to the description for the end query parameter.

      API name: end

    • excludeInterim

      @Nullable public final Boolean excludeInterim()
      Refer to the description for the exclude_interim query parameter.

      API name: exclude_interim

    • expand

      @Nullable public final Boolean expand()
      Refer to the description for the expand query parameter.

      API name: expand

    • from

      @Nullable public final Integer from()
      Skips the specified number of buckets.

      API name: from

    • jobId

      public final String jobId()
      Required - Identifier for the anomaly detection job.

      API name: job_id

    • page

      @Nullable public final Page page()
      API name: page
    • size

      @Nullable public final Integer size()
      Specifies the maximum number of buckets to obtain.

      API name: size

    • sort

      @Nullable public final String sort()
      Refer to the desription for the sort query parameter.

      API name: sort

    • start

      @Nullable public final String start()
      Refer to the description for the start query parameter.

      API name: start

    • timestamp

      @Nullable public final String timestamp()
      The timestamp of a single bucket result. If you do not specify this parameter, the API returns information about all buckets.

      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)
    • setupGetBucketsRequestDeserializer

      protected static void setupGetBucketsRequestDeserializer(ObjectDeserializer<GetBucketsRequest.Builder> op)