provider Account usage (beta) GET /api/v2/usage/service-connections
@utdk/launchdarkly /api/v2/usage/service-connections
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.
from query
The series of data returned starts from this timestamp (Unix milliseconds). Defaults to the beginning of the current month.
string
to query
The series of data returned ends at this timestamp (Unix milliseconds). Defaults to the current time.
string
projectKey query
A project key to filter results by. Can be specified multiple times, one query parameter per project key.
string
environmentKey query
An 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.
string
connectionType query
A connection type to filter results by. Can be specified multiple times, one query parameter per connection type.
string
relayVersion query
A relay version to filter results by. Can be specified multiple times, one query parameter per relay version.
string
sdkName query
An SDK name to filter results by. Can be specified multiple times, one query parameter per SDK name.
string
sdkVersion query
An SDK version to filter results by. Can be specified multiple times, one query parameter per SDK version.
string
sdkType query
An SDK type to filter results by. Can be specified multiple times, one query parameter per SDK type.
string
sdkAppId query
An SDK app ID to filter results by. Can be specified multiple times, one query parameter per SDK app ID.
string
groupBy query
If 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.<br/>Valid values: `projectId`, `environmentId`, `connectionType`, `relayVersion`, `sdkName`, `sdkVersion`, `sdkType`, `sdkAppId`.
string
aggregationType query
Specifies the aggregation method. Defaults to `month_to_date`.<br/>Valid values: `month_to_date`, `incremental`.
string
granularity query
Specifies the data granularity. Defaults to `daily`. `monthly` granularity is only supported with the **month_to_date** aggregation type.<br/>Valid values: `daily`, `hourly`, `monthly`.
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.

getserviceconnectionsusage
GET/api/v2/usage/service-connections
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.

The series of data returned starts from this timestamp (Unix milliseconds). Defaults to the beginning of the current month.

The series of data returned ends at this timestamp (Unix milliseconds). Defaults to the current time.

A project key to filter results by. Can be specified multiple times, one query parameter per project key.

An 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.

A connection type to filter results by. Can be specified multiple times, one query parameter per connection type.

A relay version to filter results by. Can be specified multiple times, one query parameter per relay version.

An SDK name to filter results by. Can be specified multiple times, one query parameter per SDK name.

An SDK version to filter results by. Can be specified multiple times, one query parameter per SDK version.

An SDK type to filter results by. Can be specified multiple times, one query parameter per SDK type.

An SDK app ID to filter results by. Can be specified multiple times, one query parameter per SDK app ID.

If 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.<br/>Valid values: `projectId`, `environmentId`, `connectionType`, `relayVersion`, `sdkName`, `sdkVersion`, `sdkType`, `sdkAppId`.

Specifies the aggregation method. Defaults to `month_to_date`.<br/>Valid values: `month_to_date`, `incremental`.

Specifies the data granularity. Defaults to `daily`. `monthly` granularity is only supported with the **month_to_date** aggregation type.<br/>Valid values: `daily`, `hourly`, `monthly`.

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