[#BloombergLP-balm-Metric-metricId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric.adoc[Metric]::metricId :relfileprefix: ../../../ :mrdocs: Return a `MetricId` object identifying this metric. If this metric was not supplied a valid collector at construction then the returned id will be invalid (i.e., `metricId().isValid() == false`). == Synopsis Declared in `<balm_metric.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricId.adoc[MetricId] metricId() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#