Class SnapshotsRecord
java.lang.Object
co.elastic.clients.elasticsearch.cat.snapshots.SnapshotsRecord
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotsRecord>Json deserializer forSnapshotsRecord -
Method Summary
Modifier and TypeMethodDescriptionfinal Timeduration()The time it took the snapshot process to complete, in time units.final LongendEpoch()The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.final StringendTime()The time (HH:MM:SS) at which the snapshot process ended.final StringThe number of failed shards in the snapshot.final Stringid()The unique identifier for the snapshot.final Stringindices()The number of indices in the snapshot.static SnapshotsRecordfinal Stringreason()The reason for any snapshot failures.final StringThe repository name.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal LongThe Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.final ScheduleTimeOfDayThe time (HH:MM:SS) at which the snapshot process started.final Stringstatus()The state of the snapshot process.final StringThe number of successful shards in the snapshot.toString()final StringThe total number of shards in the snapshot.
-
Field Details
-
_DESERIALIZER
Json deserializer forSnapshotsRecord
-
-
Method Details
-
of
public static SnapshotsRecord of(Function<SnapshotsRecord.Builder, ObjectBuilder<SnapshotsRecord>> fn) -
id
The unique identifier for the snapshot.API name:
id -
repository
The repository name.API name:
repository -
status
The state of the snapshot process. Returned values include:FAILED: The snapshot process failed.INCOMPATIBLE: The snapshot process is incompatible with the current cluster version.IN_PROGRESS: The snapshot process started but has not completed.PARTIAL: The snapshot process completed with a partial success.SUCCESS: The snapshot process completed with a full success.API name:
status -
startEpoch
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.API name:
start_epoch -
startTime
The time (HH:MM:SS) at which the snapshot process started.API name:
start_time -
endEpoch
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.API name:
end_epoch -
endTime
The time (HH:MM:SS) at which the snapshot process ended.API name:
end_time -
duration
The time it took the snapshot process to complete, in time units.API name:
duration -
indices
The number of indices in the snapshot.API name:
indices -
successfulShards
The number of successful shards in the snapshot.API name:
successful_shards -
failedShards
The number of failed shards in the snapshot.API name:
failed_shards -
totalShards
The total number of shards in the snapshot.API name:
total_shards -
reason
The reason for any snapshot failures.API name:
reason -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSnapshotsRecordDeserializer
protected static void setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)
-