provider Account usage (beta) GET
/api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} @utdk/launchdarkly
/api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} Get evaluations usage
Get time-series arrays of the number of times a flag is evaluated, broken down by the variation that resulted from that evaluation. The granularity of the data depends on the age of the data requested. If the requested range is within the past two hours, minutely data is returned. If it is within the last two days, hourly data is returned. Otherwise, daily data is returned.
- projectKey path required
- The project key
- string
- environmentKey path required
- The environment key
- string
- featureFlagKey path required
- The feature flag key
- string
- from query
- The series of data returned starts from this timestamp. Defaults to 30 days ago.
- string
- to query
- The series of data returned ends at this timestamp. Defaults to the current time.
- string
- tz query
- The timezone to use for breaks between days when returning daily data.
- 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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.getevaluationsusage()