Class ExternalMetricSource

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<ExternalMetricSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class ExternalMetricSource
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<ExternalMetricSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExternalMetricSource()
      No args constructor for use in serialization
      ExternalMetricSource​(String metricName, io.fabric8.kubernetes.api.model.LabelSelector metricSelector, io.fabric8.kubernetes.api.model.Quantity targetAverageValue, io.fabric8.kubernetes.api.model.Quantity targetValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ExternalMetricSourceBuilder edit()  
      Map<String,​Object> getAdditionalProperties()  
      String getMetricName()
      metricName is the name of the metric in question.
      io.fabric8.kubernetes.api.model.LabelSelector getMetricSelector()
      ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
      io.fabric8.kubernetes.api.model.Quantity getTargetAverageValue()
      ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
      io.fabric8.kubernetes.api.model.Quantity getTargetValue()
      ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String name, Object value)  
      void setMetricName​(String metricName)
      metricName is the name of the metric in question.
      void setMetricSelector​(io.fabric8.kubernetes.api.model.LabelSelector metricSelector)
      ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
      void setTargetAverageValue​(io.fabric8.kubernetes.api.model.Quantity targetAverageValue)
      ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
      void setTargetValue​(io.fabric8.kubernetes.api.model.Quantity targetValue)
      ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
      ExternalMetricSourceBuilder toBuilder()  
    • Constructor Detail

      • ExternalMetricSource

        public ExternalMetricSource()
        No args constructor for use in serialization
      • ExternalMetricSource

        public ExternalMetricSource​(String metricName,
                                    io.fabric8.kubernetes.api.model.LabelSelector metricSelector,
                                    io.fabric8.kubernetes.api.model.Quantity targetAverageValue,
                                    io.fabric8.kubernetes.api.model.Quantity targetValue)
    • 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.
      • getMetricSelector

        public io.fabric8.kubernetes.api.model.LabelSelector getMetricSelector()
        ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
      • setMetricSelector

        public void setMetricSelector​(io.fabric8.kubernetes.api.model.LabelSelector metricSelector)
        ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
      • getTargetAverageValue

        public io.fabric8.kubernetes.api.model.Quantity getTargetAverageValue()
        ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
      • setTargetAverageValue

        public void setTargetAverageValue​(io.fabric8.kubernetes.api.model.Quantity targetAverageValue)
        ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
      • getTargetValue

        public io.fabric8.kubernetes.api.model.Quantity getTargetValue()
        ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
      • setTargetValue

        public void setTargetValue​(io.fabric8.kubernetes.api.model.Quantity targetValue)
        ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.
      • getAdditionalProperties

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

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

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