Class PodsMetricSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.autoscaling.v2.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(MetricIdentifier metric, MetricTarget target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodsMetricSourceBuilderedit()Map<String,Object>getAdditionalProperties()MetricIdentifiergetMetric()PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).MetricTargetgetTarget()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)voidsetMetric(MetricIdentifier metric)PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second).voidsetTarget(MetricTarget target)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(MetricIdentifier metric, MetricTarget target)
-
-
Method Detail
-
getMetric
public MetricIdentifier getMetric()
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.
-
setMetric
public void setMetric(MetricIdentifier metric)
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.
-
getTarget
public MetricTarget getTarget()
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.
-
setTarget
public void setTarget(MetricTarget target)
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()
-
-