Skip to content

QuotaDefinition

← All HTTP schemas

A quota rule defined for a tenant or an agent.

Shape: object

Property Required Type Description Rules
id yes string (uuid) The rule identifier.
tenantId yes string The tenant the rule belongs to.
agentName no string The agent the rule is bound to. If null, the rule applies to all of the tenant’s runs.
period yes QuotaPeriod The counter’s reset interval.
maxRuns no integer (int64) The maximum number of runs per period. Unlimited if null. pattern `^-?(?:0\
maxTokens no integer (int64) The maximum tokens per period. Unlimited if null. pattern `^-?(?:0\
maxCost no number (double) The maximum monetary amount per period. Unlimited if null. pattern `^-?(?:0\
enabled no boolean Whether the rule is enabled.
createdAt yes string (date-time) The creation time (UTC).
updatedAt yes string (date-time) The last-updated time (UTC).