[#BloombergLP-balm-Metric-lookupCollector-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric.adoc[Metric]::lookupCollector :relfileprefix: ../../../ :mrdocs: `lookupCollector` overloads == Synopses Declared in `<balm_metric.h>` Return a collector for the specified `metricId`. Optionally specify a metrics `manager` used to provide the collector. If `manager` is 0, use the default metrics manager, if initialized; if `manager` is 0 and the default metrics manager has not been initialized, return 0. The behavior is undefined unless `metricId` is a valid metric id supplied by the `MetricsRegistry` of the indicated metrics manager. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/balm/Collector.adoc[Collector]* xref:BloombergLP/balm/Metric/lookupCollector-09.adoc[lookupCollector]( xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId, xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0); ---- [.small]#xref:BloombergLP/balm/Metric/lookupCollector-09.adoc[_» more..._]# Return a collector corresponding to the specified metric `category` and `name`. Optionally specify a metrics `manager` used to provide the collector. If `manager` is 0, use the default metrics manager if initialized; if `manager` is 0 and the default metrics manager has not been initialized, return 0. The behavior is undefined unless `category` and `name` are null‐terminated. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/balm/Collector.adoc[Collector]* xref:BloombergLP/balm/Metric/lookupCollector-01.adoc[lookupCollector]( char const* category, char const* name, xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0); ---- [.small]#xref:BloombergLP/balm/Metric/lookupCollector-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#