MetricRuleArgs

data class MetricRuleArgs(val metricCosts: Output<Map<String, String>>? = null, val selector: Output<String>? = null) : ConvertibleToJava<MetricRuleArgs>

Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.

Constructors

Link copied to clipboard
fun MetricRuleArgs(metricCosts: Output<Map<String, String>>? = null, selector: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val metricCosts: Output<Map<String, String>>? = null

Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.

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

Selects the methods to which this rule applies. Refer to selector for syntax details.