[#BloombergLP-balm-MetricsManager-collectSample-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::collectSample
:relfileprefix: ../../../
:mrdocs:

Same as the preceding overload, collecting from the specified `categories` sequence&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
collectSample(
    xref:BloombergLP/balm/MetricSample.adoc[MetricSample]* sample,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;MetricRecord&gt;]* records,
    xref:BloombergLP/balm/Category.adoc[Category] const const* categories[],
    int numCategories,
    bool resetFlag = false);
----


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