GoogleApi.ServiceControl.V1.Model.QuotaInfo (google_api_service_control v0.37.2) View Source

Contains the quota information for a quota check response.


  • limitExceeded (type: list(String.t), default: nil) - Quota Metrics that have exceeded quota limits. For QuotaGroup-based quota, this is For QuotaLimit-based quota, this is See: google.api.Quota Deprecated: Use quota_metrics to get per quota group limit exceeded status.
  • quotaConsumed (type: map(), default: nil) - Map of quota group name to the actual number of tokens consumed. If the quota check was not successful, then this will not be populated due to no quota consumption. We are not merging this field with 'quota_metrics' field because of the complexity of scaling in Chemist client code base. For simplicity, we will keep this field for Castor (that scales quota usage) and 'quota_metrics' for SuperQuota (that doesn't scale quota usage).
  • quotaMetrics (type: list(GoogleApi.ServiceControl.V1.Model.MetricValueSet.t), default: nil) - Quota metrics to indicate the usage. Depending on the check request, one or more of the following metrics will be included: 1. For rate quota, per quota group or per quota metric incremental usage will be specified using the following delta metric: "" 2. For allocation quota, per quota metric total usage will be specified using the following gauge metric: "" 3. For both rate quota and allocation quota, the quota limit reached condition will be specified using the following boolean metric: ""

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.ServiceControl.V1.Model.QuotaInfo{
  limitExceeded: [String.t()] | nil,
  quotaConsumed: map() | nil,
  quotaMetrics: [GoogleApi.ServiceControl.V1.Model.MetricValueSet.t()] | nil

Link to this section Functions


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

Unwrap a decoded JSON object into its complex fields.