provider Account usage (beta) GET /api/v2/usage/events/{type}
@utdk/launchdarkly /api/v2/usage/events/{type}
Get events 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.
type path required
The type of event to retrieve. Must be either `received` or `published`.
string
from query
The series of data returned starts from this timestamp. Defaults to 24 hours ago.
string
to query
The series of data returned ends at this timestamp. Defaults to the current time.
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.

geteventsusage
GET/api/v2/usage/events/{type}
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.

Parameters

required

The type of event to retrieve. Must be either `received` or `published`.

The series of data returned starts from this timestamp. Defaults to 24 hours ago.

The series of data returned ends at this timestamp. Defaults to the current time.

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