Class ShardRetentionPolicy
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.ShardRetentionPolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ShardRetentionPolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ShardRetentionPolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<ShardRetentionPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShardRetentionPolicy()No args constructor for use in serializationShardRetentionPolicy(RetainConfig retain, String whenScaled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardRetentionPolicyBuilderedit()Map<String,Object>getAdditionalProperties()RetainConfiggetRetain()StringgetWhenScaled()Defines the retention policy when the Prometheus shards are scaled down.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetRetain(RetainConfig retain)voidsetWhenScaled(String whenScaled)Defines the retention policy when the Prometheus shards are scaled down.ShardRetentionPolicyBuildertoBuilder()
-
-
-
Constructor Detail
-
ShardRetentionPolicy
public ShardRetentionPolicy()
No args constructor for use in serialization
-
ShardRetentionPolicy
public ShardRetentionPolicy(RetainConfig retain, String whenScaled)
-
-
Method Detail
-
getRetain
public RetainConfig getRetain()
-
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.
-
edit
public ShardRetentionPolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ShardRetentionPolicyBuilder>
-
toBuilder
public ShardRetentionPolicyBuilder toBuilder()
-
-