provider AI Configs GET /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics-by-variation
@utdk/launchdarkly /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics-by-variation
Get AI Config metrics by variation
Retrieve usage metrics for an AI Config by config key, with results split by variation.
projectKey path required
string
configKey path required
string
from query required
The starting time, as milliseconds since epoch (inclusive).
integer
to query required
The ending time, as milliseconds since epoch (exclusive). May not be more than 100 days after `from`.
integer
env query required
An environment key. Only metrics from this environment will be included.
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getaiconfigmetricsbyvariation
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.

Parameters

required
required

required

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

required

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

required

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

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.getaiconfigmetricsbyvariation()