Class Retention

java.lang.Object
co.elastic.clients.elasticsearch.slm.Retention
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public final class Retention
extends java.lang.Object
implements JsonpSerializable
  • Field Details

  • Constructor Details

  • Method Details

    • expireAfter

      public java.lang.String expireAfter()
      Time period after which a snapshot is considered expired and eligible for deletion. SLM deletes expired snapshots based on the slm.retention_schedule.

      API name: expire_after

    • maxCount

      public int maxCount()
      Maximum number of snapshots to retain, even if the snapshots have not yet expired. If the number of snapshots in the repository exceeds this limit, the policy retains the most recent snapshots and deletes older snapshots.

      API name: max_count

    • minCount

      public int minCount()
      Minimum number of snapshots to retain, even if the snapshots have expired.

      API name: min_count

    • 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)
    • setupRetentionDeserializer

      protected static void setupRetentionDeserializer​(DelegatingDeserializer<Retention.Builder> op)