Get AI Config metrics by variation

Retrieve usage metrics for an AI Config by config key, with results split by variation.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired
configKeystringRequired

Query parameters

fromintegerRequired

The starting time, as milliseconds since epoch (inclusive).

tointegerRequired

The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after from.

envstringRequired
An environment key. Only metrics from this environment will be included.
contextKindstringOptional

A context kind. Only metrics from events that include a context of this kind are included. Required if contextKey is provided.

contextKeystringOptional

A context key. Only metrics from events whose context of the contextKind kind has this key are included. Requires contextKind.

Response

Metrics computed

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error