MetricRuleResponse

data class MetricRuleResponse(val metricCosts: Map<String, String>, val selector: String)

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 MetricRuleResponse(metricCosts: Map<String, String>, selector: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

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