Attributes of an AI Gateway rate limit.

Hierarchy

  • AiGatewayRateLimitAttributes

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
costMicrocentsPerMinute?: number

Maximum priced spend per rolling minute, in microcents of 1e-8 USD each, shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit cost.

createdAt: Date

Creation timestamp.

createdBy: string

Email of the user who created this rate limit.

enabled: boolean

Whether this rate limit is active.

inputTokensPerMinute?: number

Maximum input tokens per rolling minute shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit input tokens.

isTemplate: boolean

Whether the selector gives each matching value its own allowance, that is, whether it has at least one per_value entry. Returned even when scope_restricted hides the selector.

Action taken when request rate exceeds the limit.

monitorId?: number

Datadog monitor that alerts on this rule. Null until one is provisioned.

name: string

Rate limit name.

outputTokensPerMinute?: number

Maximum output tokens per rolling minute shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit output tokens.

requestsPerMinute?: number

Maximum requests per rolling minute shared by all matching traffic, or per counter for a template rate limit. Null when this rule does not limit requests.

revision: number

Increases on every change to the definition.

scopeRestricted: boolean

Whether provider or model scope metadata was withheld. Omit unchanged scope fields on an unrelated update to preserve their saved values.

Dimension rules for a template rate limit, which gives each matched user, Team, or value its own allowance with the rule's limits. Can't be combined with user_id, team_id, or tags, and can't be changed after creation. Omit for a rule with one shared allowance.

tags: {
    [key: string]: string;
}

Optional scope tags, such as provider, model, ml_app, or custom dimensions. A request matches when it has all of these tags.

Type declaration

  • [key: string]: string
teamId?: string

Optional Team UUID. Count only requests attributed to this Datadog Team.

templateSplitDims: string[]

Dimensions of the selector's per_value entries, such as user_id or tag:env, each matching value of which gets its own allowance. Empty unless is_template is true. Returned even when scope_restricted hides the selector.

updatedAt: Date

Last modification timestamp.

updatedBy: string

Email of the user who last modified this rate limit.

userId?: string

Optional user UUID. Count only this user's requests.

Limits over rolling windows longer than a minute. Each limit counts the rule's matching traffic, or each counter of a template rate limit, over its window. Per-minute limits are in the *_per_minute fields. This list is empty when the rule has no window limits.

Generated using TypeDoc