[#BloombergLP-balm-MetricRegistry-setPreferredPublicationType] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::setPreferredPublicationType :relfileprefix: ../../../ :mrdocs: Set the preferred publication type of the specified `metric` to the specified `type`. The preferred publication type of a metric indicates the preferred aggregate to publish for that metric, or `balm::PublicationType::UNSPECIFIED` if there is no preference. The behavior is undefined unless `metric` was previously returned by this metric registry. Note that there is no uniform definition for how publishers will interpret this value; an `UNSPECIFIED` value generally indicates that the all the collected aggregates (total, count, minimum, and maximum value) should be published. Also note that the preferred publication type is accessed through the `balm::MetricDescription` (i.e., `metric.description()‐>preferredPublicationType()`). == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setPreferredPublicationType( xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metric, xref:BloombergLP/balm/PublicationType/Value.adoc[PublicationType::Value] type); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#