public class V2beta1MetricSpec extends Object
Constructor and Description |
---|
V2beta1MetricSpec() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
V2beta1ObjectMetricSource |
getObject()
object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).
|
V2beta1PodsMetricSource |
getPods()
pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).
|
V2beta1ResourceMetricSource |
getResource()
resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.
|
String |
getType()
type is the type of metric source.
|
int |
hashCode() |
V2beta1MetricSpec |
object(V2beta1ObjectMetricSource object) |
V2beta1MetricSpec |
pods(V2beta1PodsMetricSource pods) |
V2beta1MetricSpec |
resource(V2beta1ResourceMetricSource resource) |
void |
setObject(V2beta1ObjectMetricSource object) |
void |
setPods(V2beta1PodsMetricSource pods) |
void |
setResource(V2beta1ResourceMetricSource resource) |
void |
setType(String type) |
String |
toString() |
V2beta1MetricSpec |
type(String type) |
public V2beta1MetricSpec object(V2beta1ObjectMetricSource object)
public V2beta1ObjectMetricSource getObject()
public void setObject(V2beta1ObjectMetricSource object)
public V2beta1MetricSpec pods(V2beta1PodsMetricSource pods)
public V2beta1PodsMetricSource getPods()
public void setPods(V2beta1PodsMetricSource pods)
public V2beta1MetricSpec resource(V2beta1ResourceMetricSource resource)
public V2beta1ResourceMetricSource getResource()
public void setResource(V2beta1ResourceMetricSource resource)
public V2beta1MetricSpec type(String type)
public String getType()
public void setType(String type)
Copyright © 2018. All rights reserved.