[#BloombergLP-balm-CollectorRepository-addIntegerCollector-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::addIntegerCollector :relfileprefix: ../../../ :mrdocs: `addIntegerCollector` overloads == Synopses Declared in `<balm_collectorrepository.h>` Return a shared pointer to a new integer collector for the specified `metricId` and add it to the repository. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<IntegerCollector>] xref:BloombergLP/balm/CollectorRepository/addIntegerCollector-06c.adoc[addIntegerCollector](xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId); ---- [.small]#xref:BloombergLP/balm/CollectorRepository/addIntegerCollector-06c.adoc[_» more..._]# Return a shared pointer to a new integer collector for the specified `category` and `metricName`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<IntegerCollector>] xref:BloombergLP/balm/CollectorRepository/addIntegerCollector-06a.adoc[addIntegerCollector]( char const* category, char const* metricName); ---- [.small]#xref:BloombergLP/balm/CollectorRepository/addIntegerCollector-06a.adoc[_» more..._]# == Return Value shared pointer to the newly created integer collector == Parameters [cols="1,4"] |=== | Name| Description | *metricId* | identity of the metric for the new integer collector | *category* | null‐terminated category name | *metricName* | null‐terminated metric name |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#