Class DataStreamLifecycleGlobalRetentionStats
java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.DataStreamLifecycleGlobalRetentionStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DataStreamLifecycleGlobalRetentionStats
extends Object
implements JsonpSerializable
The
affected_data_streams and retention_millis
fields are only present when this global retention is defined.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forDataStreamLifecycleGlobalRetentionStats. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DataStreamLifecycleGlobalRetentionStats>Json deserializer forDataStreamLifecycleGlobalRetentionStats -
Method Summary
Modifier and TypeMethodDescriptionfinal LongThe number of data streams affected by this global retention.final booleandefined()Required - Whether this global retention is defined for the cluster.of(Function<DataStreamLifecycleGlobalRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleGlobalRetentionStats>> fn) rebuild()final LongThe global retention period in milliseconds.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupDataStreamLifecycleGlobalRetentionStatsDeserializer(ObjectDeserializer<DataStreamLifecycleGlobalRetentionStats.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDataStreamLifecycleGlobalRetentionStats
-
-
Method Details
-
of
-
defined
public final boolean defined()Required - Whether this global retention is defined for the cluster.API name:
defined -
affectedDataStreams
The number of data streams affected by this global retention.API name:
affected_data_streams -
retentionMillis
The global retention period in milliseconds.API name:
retention_millis -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
DataStreamLifecycleGlobalRetentionStats.Builderinitialized with field values of this instance
-
setupDataStreamLifecycleGlobalRetentionStatsDeserializer
protected static void setupDataStreamLifecycleGlobalRetentionStatsDeserializer(ObjectDeserializer<DataStreamLifecycleGlobalRetentionStats.Builder> op)
-