Class SnapshotsRecord
java.lang.Object
co.elastic.clients.elasticsearch.cat.snapshots.SnapshotsRecord
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotsRecord>
Json deserializer forSnapshotsRecord
-
Method Summary
Modifier and TypeMethodDescriptionfinal Time
duration()
The time it took the snapshot process to complete, in time units.final Long
endEpoch()
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.final String
endTime()
The time (HH:MM:SS) at which the snapshot process ended.final String
The number of failed shards in the snapshot.final String
id()
The unique identifier for the snapshot.final String
indices()
The number of indices in the snapshot.static SnapshotsRecord
final String
reason()
The reason for any snapshot failures.final String
The repository name.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Long
The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.final ScheduleTimeOfDay
The time (HH:MM:SS) at which the snapshot process started.final String
status()
The state of the snapshot process.final String
The number of successful shards in the snapshot.toString()
final String
The 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupSnapshotsRecordDeserializer
protected static void setupSnapshotsRecordDeserializer(ObjectDeserializer<SnapshotsRecord.Builder> op)
-