Class PodsMetricSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.autoscaling.v2beta1.PodsMetricSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PodsMetricSourceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodsMetricSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<PodsMetricSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResourcePodsMetricSource 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, io.fabric8.kubernetes.api.model.LabelSelector selector, io.fabric8.kubernetes.api.model.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 questionio.fabric8.kubernetes.api.model.LabelSelectorgetSelector()PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.LabelSelector selector, io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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 interfaceio.fabric8.kubernetes.api.builder.Editable<PodsMetricSourceBuilder>
-
toBuilder
public PodsMetricSourceBuilder toBuilder()
-
-