Class GetModelSnapshotsRequest

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

@JsonpDeserializable
public final class GetModelSnapshotsRequest
extends RequestBase
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • jobId

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

      API name: job_id

    • snapshotId

      @Nullable public java.lang.String snapshotId()
      A numerical character string that uniquely identifies the model snapshot.

      API name: snapshot_id

    • desc

      @Nullable public java.lang.Boolean desc()
      If true, the results are sorted in descending order.

      API name: desc

    • from

      @Nullable public java.lang.Integer from()
      Skips the specified number of snapshots.

      API name: from

    • size

      @Nullable public java.lang.Integer size()
      Specifies the maximum number of snapshots to obtain.

      API name: size

    • sort

      @Nullable public java.lang.String sort()
      Specifies the sort field for the requested snapshots. By default, the snapshots are sorted by their timestamp.

      API name: sort

    • start

      @Nullable public java.lang.String start()
      API name: start
    • end

      @Nullable public java.lang.String end()
      API name: end
    • 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)
    • setupGetModelSnapshotsRequestDeserializer

      protected static void setupGetModelSnapshotsRequestDeserializer​(DelegatingDeserializer<GetModelSnapshotsRequest.Builder> op)