[#BloombergLP-balm-MetricRegistry-addId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::addId :relfileprefix: ../../../ :mrdocs: Add the specified `category` and `name` to this registry, unless it has already been registered, and return a `balm::MetricId` object identifying the newly‐registered metric. If the indicated metric has already been registered, the returned `balm::MetricId` object will _not_ be valid (i.e., `isValid` will return `false`). The behavior is undefined unless `category` and `name` are null‐terminated. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricId.adoc[MetricId] addId( char const* category, char const* name); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#