GoogleApi.ServiceManagement.V1.Model.MetricRule (google_api_service_management v0.56.0) View Source

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 (type: map(), default: nil) - 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 (type: String.t, default: nil) - Selects the methods to which this rule applies. Refer to selector for syntax details.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.ServiceManagement.V1.Model.MetricRule{
  metricCosts: map() | nil,
  selector: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.