autoscaling.v2.objectMetricSource
"ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object)."
Index
obj describedObject
fn withApiVersion(apiVersion)
fn withKind(kind)
fn withName(name)
obj metric
fn withName(name)
obj metric.selector
obj target
fn withAverageUtilization(averageUtilization)
fn withAverageValue(averageValue)
fn withType(type)
fn withValue(value)
Fields
obj describedObject
"CrossVersionObjectReference contains enough information to let you identify the referred resource."
fn describedObject.withApiVersion
withApiVersion(apiVersion)
"API version of the referent"
fn describedObject.withKind
withKind(kind)
"Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\
fn describedObject.withName
withName(name)
"Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names"
obj metric
"MetricIdentifier defines the name and optionally selector for a metric"
fn metric.withName
withName(name)
"name is the name of the given metric"
obj metric.selector
"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."
fn metric.selector.withMatchExpressions
withMatchExpressions(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
fn metric.selector.withMatchExpressionsMixin
withMatchExpressionsMixin(matchExpressions)
"matchExpressions is a list of label selector requirements. The requirements are ANDed."
Note: This function appends passed data to existing values
fn metric.selector.withMatchLabels
withMatchLabels(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
fn metric.selector.withMatchLabelsMixin
withMatchLabelsMixin(matchLabels)
"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
Note: This function appends passed data to existing values
obj target
"MetricTarget defines the target value, average value, or average utilization of a specific metric"
fn target.withAverageUtilization
withAverageUtilization(averageUtilization)
"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"
fn target.withAverageValue
withAverageValue(averageValue)
"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n
fn target.withType
withType(type)
"type represents whether the metric type is Utilization, Value, or AverageValue"
fn target.withValue
withValue(value)
"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n