[#BloombergLP-balm-CollectorRepository-getDefaultCollector-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::getDefaultCollector :relfileprefix: ../../../ :mrdocs: Return the address of the modifiable default collector for the specified `metricId`. == Synopsis Declared in `<balm_collectorrepository.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/Collector.adoc[Collector]* getDefaultCollector(xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId); ---- == Description If a default collector for the identified metric does not already exist in the repository, create one, add it to the repository, and return its address. == Return Value address of the default collector for `metricId` == Parameters [cols="1,4"] |=== | Name| Description | *metricId* | identity of the metric whose default collector is returned |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#