Class ExternalMetricSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.autoscaling.v2.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).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalMetricSource()No args constructor for use in serializationExternalMetricSource(MetricIdentifier metric, MetricTarget target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalMetricSourceBuilderedit()Map<String,Object>getAdditionalProperties()MetricIdentifiergetMetric()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).MetricTargetgetTarget()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)voidsetMetric(MetricIdentifier metric)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).voidsetTarget(MetricTarget target)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(MetricIdentifier metric, MetricTarget target)
-
-
Method Detail
-
getMetric
public MetricIdentifier getMetric()
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).
-
setMetric
public void setMetric(MetricIdentifier metric)
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).
-
getTarget
public MetricTarget getTarget()
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).
-
setTarget
public void setTarget(MetricTarget target)
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).
-
edit
public ExternalMetricSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ExternalMetricSourceBuilder>
-
toBuilder
public ExternalMetricSourceBuilder toBuilder()
-
-