Get information for a single metric from the specific project.
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:
experiments
includes all experiments from the specific project that use the metricexperimentCount
includes the number of experiments from the specific project that use the metricmetricGroups
includes all metric groups from the specific project that use the metricmetricGroupCount
includes the number of metric groups from the specific project that use the metricFor example, expand=experiments
includes the experiments
field in the response.
The project key
The metric key
A comma-separated list of properties that can reveal additional information in the response.
The specific version ID of the metric
Metric response
The ID of this metric
The version ID of the metric
A unique key to reference the metric
A human-friendly name for the metric
The kind of event the metric tracks
The location and content type of related resources
Timestamp of when the metric was created
The number of experiments using this metric
The number of metric groups using this metric
The number of feature flags currently attached to this metric
Details on how to access the metric in the LaunchDarkly UI
Details on the allowed and denied actions for this metric
The ID of the member who maintains this metric
Details on the member who maintains this metric
Description of the metric
The category of the metric
For custom metrics, whether to track numeric changes in value against a baseline (true
) or to track a conversion when an end user takes an action (false
).
For custom metrics, the success criteria
For numeric custom metrics, the unit of measure
For custom metrics, the event key to use in your code
An array of randomization units allowed for this metric
The method by which multiple unit event values are aggregated
The method for analyzing metric events
The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType
is percentile
.
Experiments that use this metric, including those using a metric group that contains this metric
Metric groups that use this metric
Whether the metric is active
Details on the flags attached to this metric
Version of the metric
For click metrics, the CSS selectors
For click and pageview metrics, the target URLs