[#BloombergLP-balm-CollectorRepository-collect-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::collect
:relfileprefix: ../../../
:mrdocs:

Append collected metric records for the specified category without resetting collectors&period;

== Synopsis

Declared in `&lt;balm&lowbar;collectorrepository&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
collect(
    xref:bsl/vector-00d.adoc[bsl::vector&lt;MetricRecord&gt;]* records,
    xref:BloombergLP/balm/Category.adoc[Category] const* category);
----

== Description

Append to the specified `records` the collected metric record values from the collectors in this repository belonging to the specified `category`&period; Note that this operation does not reset the managed collectors&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *records*
| receives the collected metric records
| *category*
| category whose collectors are collected
|===


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