[#BloombergLP-balm-MetricRegistry-getId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::getId :relfileprefix: ../../../ :mrdocs: Return a `balm::MetricId` object for the metric identified by the specified `category` and `name`. If no corresponding metric has already been registered, register a new metric and return a `balm::MetricId` object identifying that newly‐registered metric. The behavior is undefined unless `category` and `name` are null‐terminated. Note that this operation is guaranteed to return a valid `balm::MetricId` object. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricId.adoc[MetricId] getId( char const* category, char const* name); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#