provider Metrics (beta) GET
/api/v2/projects/{projectKey}/metric-groups/{metricGroupKey} @utdk/launchdarkly
/api/v2/projects/{projectKey}/metric-groups/{metricGroupKey} Get metric group
Get information for a single metric group from the specific project.
### Expanding the metric group response
LaunchDarkly supports two fields for expanding the "Get metric group" response. By default, these fields are **not** included in the response.
To expand the response, append the `expand` query parameter and add a comma-separated list with either or both of the following fields:
- `experiments` includes all experiments from the specific project that use the metric group
- `experimentCount` includes the number of experiments from the specific project that use the metric group
For example, `expand=experiments` includes the `experiments` field in the response.
- projectKey path required
- The project key
- string
- metricGroupKey path required
- The metric group key
- string
- expand query
- A comma-separated list of properties that can reveal additional information in the response.
- 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.getmetricgroup()