[#BloombergLP-balm-MetricFormat-setFormatSpec]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricFormat.adoc[MetricFormat]::setFormatSpec
:relfileprefix: ../../../
:mrdocs:

Set the format spec for the metric aggregate indicated by the specified `publicationType` to the specified `formatSpec`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setFormatSpec(
    xref:BloombergLP/balm/PublicationType/Value.adoc[PublicationType::Value] publicationType,
    xref:BloombergLP/balm/MetricFormatSpec.adoc[MetricFormatSpec] const& formatSpec);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *publicationType*
| publication aggregate whose format is set
| *formatSpec*
| format specification to apply
|===


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