[#BloombergLP-balm-MetricsManager-publishAll-027]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::publishAll
:relfileprefix: ../../../
:mrdocs:

`publishAll` overloads

== Synopses

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

Publish metrics for every category registered with the contained `MetricsRegistry` object&period; Optionally specify a `resetFlag` that determines if the metrics are reset as part of this operation&period; This operation will collect aggregated metric values for each enabled category in its `metricRegistry()` from registered callbacks as well as from its own `CollectorRepository`, and then publish those records using any publishers associated with the category&period; Any category that is not enabled is ignored&period; If `resetFlag` is `true`, the metrics being collected are reset to their default state&period; The metrics manager provides publishers the time interval over which a published category of metrics were collected&period; This interval is computed as the elapsed time since the last time the category was reset (either through a call to the `publish` or `collectSample` methods)&period; If a category has not previously been reset then this interval is taken to be the elapsed time since the creation of this metrics manager&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/MetricsManager/publishAll-0e.adoc[publishAll](bool resetFlag = true);
----

[.small]#xref:BloombergLP/balm/MetricsManager/publishAll-0e.adoc[_» more&period;&period;&period;_]#

Publish metrics for every category except those in `excludedCategories`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/MetricsManager/publishAll-0f.adoc[publishAll](
    xref:bsl/set-0d.adoc[bsl::set&lt;Category const*&gt;] const& excludedCategories,
    bool resetFlag = true);
----

[.small]#xref:BloombergLP/balm/MetricsManager/publishAll-0f.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using a `std&colon;&colon;pmr&colon;&colon;set` of categories&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/MetricsManager/publishAll-02f.adoc[publishAll](
    std::pmr::set&lt;Category const*&gt; const& excludedCategories,
    bool resetFlag = true);
----

[.small]#xref:BloombergLP/balm/MetricsManager/publishAll-02f.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using a `std&colon;&colon;set` of categories&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/MetricsManager/publishAll-06.adoc[publishAll](
    std::set&lt;Category const*&gt; const& excludedCategories,
    bool resetFlag = true);
----

[.small]#xref:BloombergLP/balm/MetricsManager/publishAll-06.adoc[_» more&period;&period;&period;_]#


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