Skip to main content
GET
/
api
/
v2
/
usage
/
streams
/
{source}
/
bysdkversion
Get stream usage by SDK version
curl --request GET \
  --url https://app.launchdarkly.com/api/v2/usage/streams/{source}/bysdkversion \
  --header 'Authorization: <api-key>'
{
  "_links": {},
  "metadata": [
    {}
  ],
  "series": [
    {
      "0": 11,
      "1": 15,
      "time": 1677888000000
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

source
string<string>
required

The source of streaming connections to describe. Must be either client or server.

Query Parameters

from
string<string>

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

to
string<string>

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

tz
string<string>

The timezone to use for breaks between days when returning daily data.

sdk
string<string>

If included, this filters the returned series to only those that match this SDK name.

version
string<string>

If included, this filters the returned series to only those that match this SDK version.

Response

Usage response

The location and content type of related resources

metadata
object[]
required

Metadata about each series

series
object[]
required

An array of data points with timestamps. Each element of the array is an object with a 'time' field, whose value is the timestamp, and one or more key fields. If there are multiple key fields, they are labeled '0', '1', and so on, and are explained in the metadata.

Example:
[{ "0": 11, "1": 15, "time": 1677888000000 }]