quotas

QuotasParams

Configures a quotas aspect.

FieldTypeDescription
quotas[]repeated QuotaThe set of quotas that will be populated and handed to aspects at run time.

Quota

FieldTypeDescription
descriptorNamestringMust match the name of some quotaDescriptor in the global config.
labelsrepeated 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.
maxAmountint64The upper limit for this quota.
expirationDurationThe 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.