Skip to main content

Interface: AIGatewayGroupOptions

Defined in: src/ai-gateway/telemetry-client.ts:53

Options for a logs/groups/{dimension} query.

Extends

Properties

columns?

optional columns?: (
| "cost"
| "avg_latency"
| "avg_tokens"
| "total_tokens"
| "success_rate"
| "last_seen")[];

Defined in: src/ai-gateway/telemetry-client.ts:58

Extra columns to aggregate. Invalid names are silently dropped by the API rather than erroring. See AI_GW_GROUP_COLUMNS for the valid set.


workspaceSlug

workspaceSlug: string;

Defined in: src/ai-gateway/window.ts:4

Workspace slug, e.g. ws-main-a-349e0e. Required by every telemetry endpoint.

Inherited from

AIGatewayWindowOptions.workspaceSlug


days?

optional days?: number;

Defined in: src/ai-gateway/window.ts:6

Rolling window size in days, counted back from now. Defaults to 7. Ignored if start is set.

Inherited from

AIGatewayWindowOptions.days


start?

optional start?: Date;

Defined in: src/ai-gateway/window.ts:8

Explicit window start. Overrides days.

Inherited from

AIGatewayWindowOptions.start


end?

optional end?: Date;

Defined in: src/ai-gateway/window.ts:10

Explicit window end. Defaults to now.

Inherited from

AIGatewayWindowOptions.end