Get a list of all metrics for the specified project.
The filter
parameter supports the following operators: contains
.
You can only filter certain fields in metrics when using the filter
parameter. Additionally, you can only filter some fields with certain operators.
When you search for metrics, the filter
parameter supports the following fields and operators:
For example, the filter ?filter=tags contains ["tag1", "tag2", "tag3"]
matches metrics that have all three tags.
The documented values for filter
query parameters are prior to URL encoding. For example, the [
in ?filter=tags contains ["tag1", "tag2", "tag3"]
must be encoded to %5B
.
LaunchDarkly supports expanding the “List metrics” response. By default, the expandable field is not included in the response.
To expand the response, append the expand
query parameter and add the following supported field:
experimentCount
includes the number of experiments from the specific project that use the metricFor example, expand=experimentCount
includes the experimentCount
field for each metric in the response.
The project key
A comma-separated list of properties that can reveal additional information in the response.
The number of metrics to return in the response. Defaults to 20. Maximum limit is 50.
Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next limit
items.
A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by createdAt
or name
.
A comma-separated list of filters. This endpoint only accepts filtering by tags
. To learn more about the filter syntax, read the ‘Filtering metrics’ section above.
Metrics collection response
An array of metrics
The location and content type of related resources