Class PatchRetentionRule

java.lang.Object
com.influxdb.client.domain.PatchRetentionRule

public class PatchRetentionRule extends Object
Updates to a rule to expire or retain data.
  • Field Details

  • Constructor Details

    • PatchRetentionRule

      public PatchRetentionRule()
  • Method Details

    • getType

      public PatchRetentionRule.TypeEnum getType()
      Get type
      Returns:
      type
    • everySeconds

      public PatchRetentionRule everySeconds(Integer everySeconds)
    • getEverySeconds

      public Integer getEverySeconds()
      Duration in seconds for how long data will be kept in the database. 0 means infinite. minimum: 0
      Returns:
      everySeconds
    • setEverySeconds

      public void setEverySeconds(Integer everySeconds)
    • shardGroupDurationSeconds

      public PatchRetentionRule shardGroupDurationSeconds(Long shardGroupDurationSeconds)
    • getShardGroupDurationSeconds

      public Long getShardGroupDurationSeconds()
      Shard duration measured in seconds.
      Returns:
      shardGroupDurationSeconds
    • setShardGroupDurationSeconds

      public void setShardGroupDurationSeconds(Long shardGroupDurationSeconds)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object