provider Account usage (beta) GET
/api/v2/usage/mau @utdk/launchdarkly
/api/v2/usage/mau Get MAU usage
Get a time-series array of the number of monthly active users (MAU) seen by LaunchDarkly from your account. The granularity is always daily.<br/><br/>Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read [Account usage metrics](https://launchdarkly.com/docs/home/account/metrics).
- from query
- The series of data returned starts from this timestamp. Defaults to 30 days ago.
- string
- to query
- The series of data returned ends at this timestamp. Defaults to the current time.
- string
- project query
- A project key to filter results to. Can be specified multiple times, one query parameter per project key, to view data for multiple projects.
- string
- environment query
- An environment key to filter results to. When using this parameter, exactly one project key must also be set. Can be specified multiple times as separate query parameters to view data for multiple environments within a single project.
- string
- sdktype query
- An SDK type to filter results to. Can be specified multiple times, one query parameter per SDK type. Valid values: client, server
- string
- sdk query
- An SDK name to filter results to. Can be specified multiple times, one query parameter per SDK.
- string
- anonymous query
- If specified, filters results to either anonymous or nonanonymous users.
- 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 (for example, to group by both project and SDK). Valid values: project, environment, sdktype, sdk, anonymous, contextKind, sdkAppId
- string
- aggregationType query
- If specified, queries for rolling 30-day, month-to-date, or daily incremental counts. Default is rolling 30-day. Valid values: rolling_30d, month_to_date, daily_incremental
- string
- contextKind query
- Filters results to the specified context kinds. Can be specified multiple times, one query parameter per context kind. If not set, queries for the user context kind.
- 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.getmauusage()