Reference documentation and code samples for the Service Usage V1 API class Google::Api::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#metric_costs
def metric_costs() -> ::Google::Protobuf::Map{::String => ::Integer}
-
(::Google::Protobuf::Map{::String => ::Integer}) — 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.
#metric_costs=
def metric_costs=(value) -> ::Google::Protobuf::Map{::String => ::Integer}
-
value (::Google::Protobuf::Map{::String => ::Integer}) — 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.
-
(::Google::Protobuf::Map{::String => ::Integer}) — 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
def selector() -> ::String
-
(::String) — Selects the methods to which this rule applies.
Refer to selector for syntax details.
#selector=
def selector=(value) -> ::String
-
value (::String) — Selects the methods to which this rule applies.
Refer to selector for syntax details.
-
(::String) — Selects the methods to which this rule applies.
Refer to selector for syntax details.