labels property

Map<String, String>? labels
getter/setter pair

Labels to add to or overwrite in the PromQL query result.

Label names must be valid (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). Label values can be templatized by using variables (https://cloud.google.com/monitoring/alerts/doc-variables). The only available variable names are the names of the labels in the PromQL result, including "name" and "value". "labels" may be empty.

Optional.

Implementation

core.Map<core.String, core.String>? labels;