[#BloombergLP-balm-MetricRegistry-setFormat]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::setFormat
:relfileprefix: ../../../
:mrdocs:

Set the format for the specified `metricId` to the specified `format`&period; Note that there is no uniform specification for how publisher implementations will interpret the supplied `format`&period; Also note that the format for a metric is accessed through the `balm&colon;&colon;MetricDescription`&period; For example&colon; &grave; metric&period;description()&hyphen;&gt;format()&semi; &grave;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setFormat(
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId,
    xref:BloombergLP/balm/MetricFormat.adoc[MetricFormat] const& format);
----


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