[#BloombergLP-balm-MetricsManager-publish-028]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::publish
:relfileprefix: ../../../
:mrdocs:

`publish` overloads

== Synopses

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

Publish metrics belonging to the specified `categories`&period;


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

[.small]#xref:BloombergLP/balm/MetricsManager/publish-02e.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/publish-08.adoc[publish](
    std::pmr::set&lt;Category const*&gt; const& categories,
    bool resetFlag = true);
----

[.small]#xref:BloombergLP/balm/MetricsManager/publish-08.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/publish-020.adoc[publish](
    std::set&lt;Category const*&gt; const& categories,
    bool resetFlag = true);
----

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

Publish metrics for the specified `category` if it is enabled&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/MetricsManager/publish-03a.adoc[publish](
    xref:BloombergLP/balm/Category.adoc[Category] const* category,
    bool resetFlag = true);
----

[.small]#xref:BloombergLP/balm/MetricsManager/publish-03a.adoc[_» more&period;&period;&period;_]#

Publish metrics for the specified sequence of unique categories&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balm/MetricsManager/publish-03e.adoc[publish](
    xref:BloombergLP/balm/Category.adoc[Category] const const* categories[],
    int numCategories,
    bool resetFlag = true);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *categories*
| set of categories whose metrics are published
| *resetFlag*
| if `true`, reset collected metrics to defaults
| *category*
| category whose metrics are published if enabled
| *numCategories*
| number of categories in `categories`
|===


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