ObjectMetricSourceArgs

data class ObjectMetricSourceArgs(val averageValue: Output<String>? = null, val metricName: Output<String>, val selector: Output<LabelSelectorArgs>? = null, val target: Output<CrossVersionObjectReferenceArgs>, val targetValue: Output<String>) : ConvertibleToJava<ObjectMetricSourceArgs>

ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).

Constructors

Link copied to clipboard
constructor(averageValue: Output<String>? = null, metricName: Output<String>, selector: Output<LabelSelectorArgs>? = null, target: Output<CrossVersionObjectReferenceArgs>, targetValue: Output<String>)

Properties

Link copied to clipboard
val averageValue: Output<String>? = null

averageValue is the target value of the average of the metric across all relevant pods (as a quantity)

Link copied to clipboard
val metricName: Output<String>

metricName is the name of the metric in question.

Link copied to clipboard
val selector: Output<LabelSelectorArgs>? = null

selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.

Link copied to clipboard

target is the described Kubernetes object.

Link copied to clipboard
val targetValue: Output<String>

targetValue is the target value of the metric (as a quantity).

Functions

Link copied to clipboard
open override fun toJava(): ObjectMetricSourceArgs