MetricRule 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

MetricRule()
MetricRule.fromJson(Map _json)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
metricCosts 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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selector String
Selects the methods to which this rule applies. Refer to selector for syntax details.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited