[#BloombergLP-balm-MetricDescription-setPreferredPublicationType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricDescription.adoc[MetricDescription]::setPreferredPublicationType
:relfileprefix: ../../../
:mrdocs:

Set the preferred publication type of this metric to the specified `type`&period; The preferred publication type of this metric indicates the preferred aggregate to publish for this metric, or `PublicationType&colon;&colon;UNSPECIFIED` if there is no preference&period; Note that there is no uniform definition for how publishers will interpret this value&semi; an `UNSPECIFIED` value generally indicates that all the collected aggregates (total, count, minimum, and maximum value) should be published&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setPreferredPublicationType(xref:BloombergLP/balm/PublicationType/Value.adoc[PublicationType::Value] type);
----


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