Class TopologyShardingStrategy
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.TopologyShardingStrategy
-
- All Implemented Interfaces:
Editable<TopologyShardingStrategyBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TopologyShardingStrategy extends Object implements Editable<TopologyShardingStrategyBuilder>, KubernetesResource
TopologyShardingStrategy defines the configuration for topology-aware sharding.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopologyShardingStrategy()No args constructor for use in serializationTopologyShardingStrategy(String externalLabelName, List<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologyShardingStrategyBuilderedit()Map<String,Object>getAdditionalProperties()StringgetExternalLabelName()externalLabelName defines the name of the Prometheus external label used to communicate the topology zone assigned to the Prometheus instance.List<String>getValues()values defines the list of topology values (e.g. zone names) to be used for sharding.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetExternalLabelName(String externalLabelName)externalLabelName defines the name of the Prometheus external label used to communicate the topology zone assigned to the Prometheus instance.voidsetValues(List<String> values)values defines the list of topology values (e.g. zone names) to be used for sharding.TopologyShardingStrategyBuildertoBuilder()
-
-
-
Method Detail
-
getExternalLabelName
public String getExternalLabelName()
externalLabelName defines the name of the Prometheus external label used to communicate the topology zone assigned to the Prometheus instance. If not defined, it defaults to "zone". If set to the empty string, no external label is added to the Prometheus configuration.
-
setExternalLabelName
public void setExternalLabelName(String externalLabelName)
externalLabelName defines the name of the Prometheus external label used to communicate the topology zone assigned to the Prometheus instance. If not defined, it defaults to "zone". If set to the empty string, no external label is added to the Prometheus configuration.
-
getValues
public List<String> getValues()
values defines the list of topology values (e.g. zone names) to be used for sharding. The configured number of shards must be greater than or equal to the number of values.
-
setValues
public void setValues(List<String> values)
values defines the list of topology values (e.g. zone names) to be used for sharding. The configured number of shards must be greater than or equal to the number of values.
-
edit
public TopologyShardingStrategyBuilder edit()
- Specified by:
editin interfaceEditable<TopologyShardingStrategyBuilder>
-
toBuilder
public TopologyShardingStrategyBuilder toBuilder()
-
-