Class DataStreamLifecycleWithRollover
java.lang.Object
co.elastic.clients.elasticsearch.indices.DataStreamLifecycleWithRollover
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DataStreamLifecycleWithRollover
extends Object
implements JsonpSerializable
Data lifecycle with rollover can be used to display the configuration
including the default rollover conditions, if asked.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<DataStreamLifecycleWithRollover>
Json deserializer forDataStreamLifecycleWithRollover
-
Method Summary
Modifier and TypeMethodDescriptionfinal Time
If defined, every document added to this data stream will be stored at least for this time frame.The downsampling configuration to execute for the managed backing index after rollover.of
(Function<DataStreamLifecycleWithRollover.Builder, ObjectBuilder<DataStreamLifecycleWithRollover>> fn) rollover()
The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover
.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
setupDataStreamLifecycleWithRolloverDeserializer
(ObjectDeserializer<DataStreamLifecycleWithRollover.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDataStreamLifecycleWithRollover
-
-
Method Details
-
of
-
dataRetention
If defined, every document added to this data stream will be stored at least for this time frame. Any time after this duration the document could be deleted. When empty, every document in this data stream will be stored indefinitely.API name:
data_retention
-
downsampling
The downsampling configuration to execute for the managed backing index after rollover.API name:
downsampling
-
rollover
The conditions which will trigger the rollover of a backing index as configured by the cluster settingcluster.lifecycle.default.rollover
. This property is an implementation detail and it will only be retrieved when the query paraminclude_defaults
is set to true. The contents of this field are subject to change.API name:
rollover
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDataStreamLifecycleWithRolloverDeserializer
protected static void setupDataStreamLifecycleWithRolloverDeserializer(ObjectDeserializer<DataStreamLifecycleWithRollover.Builder> op)
-