PodsMetricSourcePatchArgs

data class PodsMetricSourcePatchArgs(val metricName: Output<String>? = null, val selector: Output<LabelSelectorPatchArgs>? = null, val targetAverageValue: Output<String>? = null) : ConvertibleToJava<PodsMetricSourcePatchArgs>

PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.

Constructors

Link copied to clipboard
constructor(metricName: Output<String>? = null, selector: Output<LabelSelectorPatchArgs>? = null, targetAverageValue: Output<String>? = null)

Properties

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

metricName is the name of the metric in question

Link copied to clipboard
val selector: Output<LabelSelectorPatchArgs>? = 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
val targetAverageValue: Output<String>? = null

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

Functions

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