MetricRuleResponse class
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
-
MetricRuleResponse({required Input<
Map< metricCosts, required Input<String, String> >String> selector}) -
Creates a new MetricRuleResponse.
metricCostsMetrics 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.selectorSelects the methods to which this rule applies. Refer to selector for syntax details.const -
MetricRuleResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metricCosts
→ Input<
Map< String, String> > -
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selector
→ Input<
String> -
Selects the methods to which this rule applies. Refer to selector for syntax details.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited