public class V2beta1HorizontalPodAutoscalerSpec extends Object
Constructor and Description |
---|
V2beta1HorizontalPodAutoscalerSpec() |
Modifier and Type | Method and Description |
---|---|
V2beta1HorizontalPodAutoscalerSpec |
addMetricsItem(V2beta1MetricSpec metricsItem) |
boolean |
equals(Object o) |
Integer |
getMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
List<V2beta1MetricSpec> |
getMetrics()
metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).
|
Integer |
getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.
|
V2beta1CrossVersionObjectReference |
getScaleTargetRef()
scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
|
int |
hashCode() |
V2beta1HorizontalPodAutoscalerSpec |
maxReplicas(Integer maxReplicas) |
V2beta1HorizontalPodAutoscalerSpec |
metrics(List<V2beta1MetricSpec> metrics) |
V2beta1HorizontalPodAutoscalerSpec |
minReplicas(Integer minReplicas) |
V2beta1HorizontalPodAutoscalerSpec |
scaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef) |
void |
setMaxReplicas(Integer maxReplicas) |
void |
setMetrics(List<V2beta1MetricSpec> metrics) |
void |
setMinReplicas(Integer minReplicas) |
void |
setScaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef) |
String |
toString() |
public V2beta1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas)
public Integer getMaxReplicas()
public void setMaxReplicas(Integer maxReplicas)
public V2beta1HorizontalPodAutoscalerSpec metrics(List<V2beta1MetricSpec> metrics)
public V2beta1HorizontalPodAutoscalerSpec addMetricsItem(V2beta1MetricSpec metricsItem)
public List<V2beta1MetricSpec> getMetrics()
public void setMetrics(List<V2beta1MetricSpec> metrics)
public V2beta1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas)
public Integer getMinReplicas()
public void setMinReplicas(Integer minReplicas)
public V2beta1HorizontalPodAutoscalerSpec scaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef)
public V2beta1CrossVersionObjectReference getScaleTargetRef()
public void setScaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef)
Copyright © 2018. All rights reserved.