[#BloombergLP-balm-MetricRegistry-findId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::findId :relfileprefix: ../../../ :mrdocs: Find the metric id for `category` and `name` in this registry. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/MetricId.adoc[MetricId] findId( char const* category, char const* name) const; ---- == Description Find the specified null‐terminated strings `category` and `name` in this registry. Return the `balm::MetricId` object corresponding to the metric having the `category` and `name`, if found, or an invalid metric id if no such metric has been registered (i.e., `isValid` will return `false`). == Return Value metric id for `category` and `name`, or an invalid id if not registered == Parameters [cols="1,4"] |=== | Name| Description | *category* | null‐terminated category name | *name* | null‐terminated metric name |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#