provider Account usage (beta) GET
/api/v2/usage/streams/{source}/bysdkversion @utdk/launchdarkly
/api/v2/usage/streams/{source}/bysdkversion Get stream usage by SDK version
Get multiple series of the number of streaming connections to LaunchDarkly in each time period, separated by SDK type and version. Information about each series is in the metadata array. The granularity of the data depends on the age of the data requested. If the requested range is within the past 2 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 24 hours 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
- sdk query
- If included, this filters the returned series to only those that match this SDK name.
- string
- version query
- If included, this filters the returned series to only those that match this SDK version.
- 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.getstreamusagebysdkversion()