Class PodsMetricSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.autoscaling.v2beta1.PodsMetricSource
-
- All Implemented Interfaces:
Editable<PodsMetricSourceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodsMetricSource extends Object implements Editable<PodsMetricSourceBuilder>, KubernetesResource
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodsMetricSource()No args constructor for use in serializationPodsMetricSource(String metricName, LabelSelector selector, Quantity targetAverageValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodsMetricSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetMetricName()metricName is the name of the metric in questionLabelSelectorgetSelector()PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).QuantitygetTargetAverageValue()PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMetricName(String metricName)metricName is the name of the metric in questionvoidsetSelector(LabelSelector selector)PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).voidsetTargetAverageValue(Quantity targetAverageValue)PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).PodsMetricSourceBuildertoBuilder()
-
-
-
Constructor Detail
-
PodsMetricSource
public PodsMetricSource()
No args constructor for use in serialization
-
PodsMetricSource
public PodsMetricSource(String metricName, LabelSelector selector, Quantity targetAverageValue)
-
-
Method Detail
-
getMetricName
public String getMetricName()
metricName is the name of the metric in question
-
setMetricName
public void setMetricName(String metricName)
metricName is the name of the metric in question
-
getSelector
public LabelSelector getSelector()
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
-
setSelector
public void setSelector(LabelSelector selector)
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
-
getTargetAverageValue
public Quantity getTargetAverageValue()
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
-
setTargetAverageValue
public void setTargetAverageValue(Quantity targetAverageValue)
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
-
edit
public PodsMetricSourceBuilder edit()
- Specified by:
editin interfaceEditable<PodsMetricSourceBuilder>
-
toBuilder
public PodsMetricSourceBuilder toBuilder()
-
-