Class ExternalMetricSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.autoscaling.v2beta1.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.KubernetesResourceExternalMetricSource 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 serializationExternalMetricSource(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 ExternalMetricSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetMetricName()metricName is the name of the metric in question.io.fabric8.kubernetes.api.model.LabelSelectorgetMetricSelector()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.QuantitygetTargetAverageValue()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.QuantitygetTargetValue()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).voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMetricName(String metricName)metricName is the name of the metric in question.voidsetMetricSelector(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).voidsetTargetAverageValue(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).voidsetTargetValue(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).ExternalMetricSourceBuildertoBuilder()
-
-
-
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.
-
edit
public ExternalMetricSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ExternalMetricSourceBuilder>
-
toBuilder
public ExternalMetricSourceBuilder toBuilder()
-
-