Get service connections usage
Get a time series array showing the number of service connection minutes from your account. The supported granularity varies by aggregation type. The maximum time range is 365 days.
Authorization
ApiKey read, writeIn: header
Scope: read, write
Query Parameters
The series of data returned starts from this timestamp (Unix milliseconds). Defaults to the beginning of the current month.
stringThe series of data returned ends at this timestamp (Unix milliseconds). Defaults to the current time.
stringA project key to filter results by. Can be specified multiple times, one query parameter per project key.
stringAn environment key to filter results by. If specified, exactly one projectKey must be provided. Can be specified multiple times, one query parameter per environment key.
stringA connection type to filter results by. Can be specified multiple times, one query parameter per connection type.
stringA relay version to filter results by. Can be specified multiple times, one query parameter per relay version.
stringAn SDK name to filter results by. Can be specified multiple times, one query parameter per SDK name.
stringAn SDK version to filter results by. Can be specified multiple times, one query parameter per SDK version.
stringDeprecated. This endpoint reports server-side connections only, so server is the only value that returns data and omitting the parameter is equivalent. Any other value returns an empty series. To report client-side connections, use GET /api/v2/usage/streams/{source}.
stringAn SDK app ID to filter results by. Can be specified multiple times, one query parameter per SDK app ID.
stringIf specified, returns data for each distinct value of the given field. Can be specified multiple times to group data by multiple dimensions, one query parameter per dimension.Valid values: projectId, environmentId, connectionType, relayVersion, sdkName, sdkVersion, sdkAppId.sdkType is no longer offered: this endpoint reports server-side connections only, so grouping by it returns a single group. It is still accepted, for compatibility.
stringSpecifies the aggregation method. Defaults to month_to_date.Valid values: month_to_date, incremental.
stringSpecifies the data granularity. Defaults to daily. monthly granularity is only supported with the month_to_date aggregation type.Valid values: daily, hourly, monthly.
stringResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/usage/service-connections"{ "_links": { "property1": null, "property2": null }, "metadata": [ { "property1": null, "property2": null } ], "series": [ { "0": 11, "1": 15, "time": 1677888000000 } ], "projectedSeries": [ { "0": 11, "time": 1677888000000 } ]}Get contexts serverside usage GET
Get a detailed time series of the number of context key usages observed by LaunchDarkly in your account, including non-primary context kinds. Use this for breakdowns that go beyond the primary-only aggregation of MAU endpoints. The counts reflect data reported by server-side SDKs.<br/><br/>The supported granularity varies by aggregation type. The maximum time range is 365 days.
Get stream usage GET
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.