[#BloombergLP-balm-StreamPublisher-publish-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/StreamPublisher.adoc[StreamPublisher]::publish
:relfileprefix: ../../../
:mrdocs:

`publish` overloads

== Synopses

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

Publish the specified `metricValue`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/balm/Publisher/publish.adoc[publish](xref:BloombergLP/balm/MetricSample.adoc[MetricSample] const& metricValue) = 0;
----

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

Publish the specified `metricValues` to the output stream specified at construction&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/balm/StreamPublisher/publish-0f.adoc[publish](xref:BloombergLP/balm/MetricSample.adoc[MetricSample] const& metricValues);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *metricValue*
| sample of recorded metric values to publish
| *metricValues*
| sample of recorded metric values to write
|===


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