Get metric
Get information for a single metric from the specific project.
Expanding the metric response
LaunchDarkly supports four fields for expanding the “Get metric” 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 any of the following fields:
experimentsincludes all experiments from the specific project that use the metricexperimentCountincludes the number of experiments from the specific project that use the metricmetricGroupsincludes all metric groups from the specific project that use the metricmetricGroupCountincludes the number of metric groups from the specific project that use the metric
For example, expand=experiments includes the experiments field in the response.
Path Parameters
Query Parameters
Response
Metric response
Details on the member who maintains this metric
"{\"_links\":{\"self\":{\"href\":\"/api/v2/members/569fdeadbeef1644facecafe\",\"type\":\"application/json\"}},\"_id\":\"569fdeadbeef1644facecafe\",\"firstName\":\"Ariel\",\"lastName\":\"Flores\",\"role\":\"owner\",\"email\":\"ariel@acme.com\"}"
The filters narrowing down the audience based on context attributes or event properties.
"{\"type\":\"group\",\"op\":\"and\",\"values\":[{\"type\":\"contextAttribute\",\"op\":\"in\",\"contextKind\":\"user\",\"attribute\":\"country\",\"values\":[\"JP\"],\"negate\":false},{\"type\":\"eventProperty\",\"op\":\"in\",\"attribute\":\"category\",\"values\":[\"magic-wands\"],\"negate\":false}]}"