Class GetModelSnapshotsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.GetModelSnapshotsRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class GetModelSnapshotsRequest extends RequestBase implements JsonpSerializable
Retrieves information about model snapshots.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetModelSnapshotsRequest.BuilderBuilder forGetModelSnapshotsRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GetModelSnapshotsRequest>_DESERIALIZERJson deserializer forGetModelSnapshotsRequeststatic Endpoint<GetModelSnapshotsRequest,GetModelSnapshotsResponse,ErrorResponse>_ENDPOINTEndpoint "ml.get_model_snapshots". -
Method Summary
Modifier and Type Method Description java.lang.Booleandesc()Refer to the description for thedescquery parameter.Timeend()Refer to the description for theendquery parameter.java.lang.Integerfrom()Skips the specified number of snapshots.java.lang.StringjobId()Required - Identifier for the anomaly detection job.static GetModelSnapshotsRequestof(java.util.function.Function<GetModelSnapshotsRequest.Builder,ObjectBuilder<GetModelSnapshotsRequest>> fn)Pagepage()API name:pagevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGetModelSnapshotsRequestDeserializer(ObjectDeserializer<GetModelSnapshotsRequest.Builder> op)java.lang.Integersize()Specifies the maximum number of snapshots to obtain.java.lang.StringsnapshotId()A numerical character string that uniquely identifies the model snapshot.java.lang.Stringsort()Refer to the description for thesortquery parameter.Timestart()Refer to the description for thestartquery parameter.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forGetModelSnapshotsRequest -
_ENDPOINT
public static final Endpoint<GetModelSnapshotsRequest,GetModelSnapshotsResponse,ErrorResponse> _ENDPOINTEndpoint "ml.get_model_snapshots".
-
-
Method Details
-
of
public static GetModelSnapshotsRequest of(java.util.function.Function<GetModelSnapshotsRequest.Builder,ObjectBuilder<GetModelSnapshotsRequest>> fn) -
desc
@Nullable public final java.lang.Boolean desc()Refer to the description for thedescquery parameter.API name:
desc -
end
Refer to the description for theendquery parameter.API name:
end -
from
@Nullable public final java.lang.Integer from()Skips the specified number of snapshots.API name:
from -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id -
page
API name:page -
size
@Nullable public final java.lang.Integer size()Specifies the maximum number of snapshots to obtain.API name:
size -
snapshotId
@Nullable public final java.lang.String snapshotId()A numerical character string that uniquely identifies the model snapshot. You can get information for multiple snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using_all, by specifying*as the snapshot ID, or by omitting the snapshot ID.API name:
snapshot_id -
sort
@Nullable public final java.lang.String sort()Refer to the description for thesortquery parameter.API name:
sort -
start
Refer to the description for thestartquery parameter.API name:
start -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGetModelSnapshotsRequestDeserializer
protected static void setupGetModelSnapshotsRequestDeserializer(ObjectDeserializer<GetModelSnapshotsRequest.Builder> op)
-