provider Account usage (beta) GET /api/v2/usage/observability/sessions
@utdk/launchdarkly /api/v2/usage/observability/sessions
Get observability sessions usage
Get time-series arrays of the number of observability sessions. Supports `daily` and `monthly` granularity.
from query
The series of data returned starts from this timestamp (Unix seconds). Defaults to the beginning of the current month.
string
to query
The series of data returned ends at this timestamp (Unix seconds). 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
granularity query
Specifies the data granularity. Defaults to `daily`. Valid values depend on `aggregationType`: **month_to_date** supports `daily` and `monthly`; **incremental** and **rolling_30d** support `daily` only.
string
aggregationType query
Specifies the aggregation method. Defaults to `month_to_date`.<br/>Valid values: `month_to_date`, `incremental`, `rolling_30d`.
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.

getobservabilitysessionsusage
GET/api/v2/usage/observability/sessions
Get time-series arrays of the number of observability sessions. Supports `daily` and `monthly` granularity.

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

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

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

Specifies the data granularity. Defaults to `daily`. Valid values depend on `aggregationType`: **month_to_date** supports `daily` and `monthly`; **incremental** and **rolling_30d** support `daily` only.

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

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