Class 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.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 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)