The metric you want to retain. Dimensions are optional.
The value indicates exporting metrics related to the MetricToRetain when it's true.
MetricToRetain
What is measured by the behavior.
The dimension of a metric. This can't be used with custom metrics.