provider AI Configs GET /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics
@utdk/launchdarkly /api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics
Get AI Config metrics
Retrieve usage metrics for an AI Config by config key.
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.

getaiconfigmetrics
GET/api/v2/projects/{projectKey}/ai-configs/{configKey}/metrics
Retrieve usage metrics for an AI Config by config key.

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.getaiconfigmetrics()