Class DataStreamLifecycle

java.lang.Object
co.elastic.clients.elasticsearch.indices.DataStreamLifecycle
All Implemented Interfaces:
JsonpSerializable
Direct Known Subclasses:
DataStreamLifecycleWithRollover

@JsonpDeserializable public class DataStreamLifecycle extends Object implements JsonpSerializable
Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • dataStreamLifecycleOf

    • dataRetention

      @Nullable public final Time 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

      @Nullable public final DataStreamLifecycleDownsampling downsampling()
      The downsampling configuration to execute for the managed backing index after rollover.

      API name: downsampling

    • enabled

      @Nullable public final Boolean enabled()
      If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle that's disabled (enabled: false) will have no effect on the data stream.

      API name: enabled

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupDataStreamLifecycleDeserializer

      protected static <BuilderT extends DataStreamLifecycle.AbstractBuilder<BuilderT>> void setupDataStreamLifecycleDeserializer(ObjectDeserializer<BuilderT> op)