Class ShardRetentionPolicy

    • Constructor Detail

      • ShardRetentionPolicy

        public ShardRetentionPolicy()
        No args constructor for use in serialization
      • ShardRetentionPolicy

        public ShardRetentionPolicy​(RetainConfig retain,
                                    String whenScaled)
    • Method Detail

      • setRetain

        public void setRetain​(RetainConfig retain)
      • getWhenScaled

        public String getWhenScaled()
        Defines the retention policy when the Prometheus shards are scaled down. * `Delete`, the operator will delete the pods from the scaled-down shard(s). * `Retain`, the operator will keep the pods from the scaled-down shard(s), so the data can still be queried.


        If not defined, the operator assumes the `Delete` value.

      • setWhenScaled

        public void setWhenScaled​(String whenScaled)
        Defines the retention policy when the Prometheus shards are scaled down. * `Delete`, the operator will delete the pods from the scaled-down shard(s). * `Retain`, the operator will keep the pods from the scaled-down shard(s), so the data can still be queried.


        If not defined, the operator assumes the `Delete` value.

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)