provider Account usage (beta) GET
/api/v2/usage/streams/{source} @utdk/launchdarkly
/api/v2/usage/streams/{source} Get stream usage
Get a time-series array of the number of streaming connections to LaunchDarkly in each time period. 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.
- source path required
- The source of streaming connections to describe. Must be either `client` or `server`.
- 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.getstreamusage()