com.google.api.quota.MetricRule
See theMetricRule companion object
final case class MetricRule(selector: String, metricCosts: Map[String, Long], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[MetricRule]
Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
Attributes
- metricCosts
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.
- selector
Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
- Companion:
- object
- Source:
- MetricRule.scala
- Graph
- Supertypes
- trait Updatable[MetricRule]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any