provider Account usage (beta) GET
/api/v2/usage/observability/errors @utdk/launchdarkly
/api/v2/usage/observability/errors Get observability errors usage
Get time-series arrays of the number of observability errors. 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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.getobservabilityerrorsusage()