Class ModelSnapshot
java.lang.Object
co.elastic.clients.elasticsearch.ml.ModelSnapshot
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ModelSnapshot extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelSnapshot.BuilderBuilder forModelSnapshot. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ModelSnapshot>_DESERIALIZERJson deserializer forModelSnapshot -
Constructor Summary
Constructors Constructor Description ModelSnapshot(ModelSnapshot.Builder builder)ModelSnapshot(java.util.function.Function<ModelSnapshot.Builder,ModelSnapshot.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringdescription()An optional description of the job.java.lang.StringjobId()Required - A numerical character string that uniquely identifies the job that the snapshot was created for.intlatestRecordTimeStamp()Required - The timestamp of the latest processed record.intlatestResultTimeStamp()Required - The timestamp of the latest bucket result.java.lang.StringminVersion()Required - The minimum version required to be able to restore the model snapshot.ModelSizeStatsmodelSizeStats()Required - Summary information describing the model.booleanretain()Required - If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupModelSnapshotDeserializer(DelegatingDeserializer<ModelSnapshot.Builder> op)longsnapshotDocCount()Required - For internal use only.java.lang.StringsnapshotId()Required - A numerical character string that uniquely identifies the model snapshot.inttimestamp()Required - The creation timestamp for the snapshot.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forModelSnapshot
-
-
Constructor Details
-
ModelSnapshot
-
ModelSnapshot
-
-
Method Details
-
description
@Nullable public java.lang.String description()An optional description of the job.API name:
description -
jobId
public java.lang.String jobId()Required - A numerical character string that uniquely identifies the job that the snapshot was created for.API name:
job_id -
latestRecordTimeStamp
public int latestRecordTimeStamp()Required - The timestamp of the latest processed record.API name:
latest_record_time_stamp -
latestResultTimeStamp
public int latestResultTimeStamp()Required - The timestamp of the latest bucket result.API name:
latest_result_time_stamp -
minVersion
public java.lang.String minVersion()Required - The minimum version required to be able to restore the model snapshot.API name:
min_version -
modelSizeStats
Required - Summary information describing the model.API name:
model_size_stats -
retain
public boolean retain()Required - If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days. However, this snapshot will be deleted when the job is deleted. The default value is false.API name:
retain -
snapshotDocCount
public long snapshotDocCount()Required - For internal use only.API name:
snapshot_doc_count -
snapshotId
public java.lang.String snapshotId()Required - A numerical character string that uniquely identifies the model snapshot.API name:
snapshot_id -
timestamp
public int timestamp()Required - The creation timestamp for the snapshot.API name:
timestamp -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupModelSnapshotDeserializer
protected static void setupModelSnapshotDeserializer(DelegatingDeserializer<ModelSnapshot.Builder> op)
-