Get AI config metrics by variation

GET
/api/v2/projects/:projectKey/ai-configs/:configKey/metrics-by-variation

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

Path parameters

projectKeystringRequired
configKeystringRequired

Headers

LD-API-Version"beta"Required

Version of the endpoint.

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.

Response

Metrics computed

list of objects or null

Errors

Built with