Get AI Config metrics
Retrieve usage metrics for an AI Config by config key.
Authorizations
Query Parameters
The starting time, as milliseconds since epoch (inclusive).
The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after from.
An environment key. Only metrics from this environment will be included.
A context kind. Only metrics from events that include a context of this kind are included. Required if contextKey is provided.
A context key. Only metrics from events whose context of the contextKind kind has this key are included. Requires contextKind.
Response
Metrics computed
Number of attempted generations
Number of successful generations
Number of generations with errors
A value between 0 and 1 representing satisfaction rating
0 <= x <= 1Cost of input tokens in USD
Cost of output tokens in USD
Average accuracy judge score (0.0-1.0)
0 <= x <= 1Average relevance judge score (0.0-1.0)
0 <= x <= 1Average toxicity judge score (0.0-1.0)
0 <= x <= 1