[#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 `&lt;balm&lowbar;metric&period;h&gt;`

Return a collector for the specified `metricId`&period;


[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&period;&period;&period;_]#

Return a collector corresponding to the specified metric `category` and `name`&period;


[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&period;&period;&period;_]#

== Return Value

* collector for `metricId`, or 0 if none is available
* collector for `category` and `name`, or 0 if none is available

== Parameters

[cols="1,4"]
|===
| Name| Description
| *metricId*
| identity of the metric to look up
| *manager*
| metrics manager used to provide the collector (optional)
| *category*
| null&hyphen;terminated category name
| *name*
| null&hyphen;terminated metric name
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
