quotas
QuotasParams
Configures a quotas aspect.
Field | Type | Description |
---|
quotas[] | repeated Quota | The set of quotas that will be populated and handed to aspects at run time. |
Quota
Field | Type | Description |
---|
descriptorName | string | Must match the name of some quotaDescriptor in the global config. |
labels | repeated map<string, string> | Map of quotaDescriptor label name to attribute expression. At run time each expression will be evaluated to determine the value provided to the aspect. The result of evaluating the expression must match the ValueType of the label in the quotaDescriptor. |
maxAmount | int64 | The upper limit for this quota. |
expiration | Duration | The amount of time allocated quota remains valid before it is automatically released. This is only meaningful for quotas annotated as rate limits, otherwise the value must be zero. |