Skip to main content

Interface: AIGatewayLogsOptions

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

Options for the raw logs collection.

Deliberately NOT ListingOptions: offset paging is broken upstream. skip/offset/ page are ignored by the API and every unfiltered call returns the same most-recent batch.

Extends

Properties

pageSize?

optional pageSize?: number;

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

Rows per response. The only working pagination control.


traceId?

optional traceId?: string;

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

Return the single row for one trace id.


statusCode?

optional statusCode?: number;

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

Filter by HTTP status. Bypasses the ~50-row cap — use 446 to pull every AIRS block.


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