Class: Google::Api::MetricRule
- Inherits:
-
Object
- Object
- Google::Api::MetricRule
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/api/quota.rb
Overview
Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.
Defined Under Namespace
Classes: MetricCostsEntry
Instance Attribute Summary collapse
-
#metric_costs ⇒ ::Google::Protobuf::Map{::String => ::Integer}
Metrics to update when the selected methods are called, and the associated cost applied to each metric.
-
#selector ⇒ ::String
Selects the methods to which this rule applies.
Instance Attribute Details
#metric_costs ⇒ ::Google::Protobuf::Map{::String => ::Integer}
Returns 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.
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'proto_docs/google/api/quota.rb', line 99 class MetricRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Integer] class MetricCostsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#selector ⇒ ::String
Returns Selects the methods to which this rule applies.
Refer to selector for syntax details.
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'proto_docs/google/api/quota.rb', line 99 class MetricRule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Integer] class MetricCostsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |