[#BloombergLP-balm-Metric-2constructor-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric.adoc[Metric]::Metric
:relfileprefix: ../../../
:mrdocs:

Create a metric object to collect values for the metric identified by the specified null&hyphen;terminated strings `category` and `name`&period; Optionally specify a metrics `manager` used to provide a collector for the indicated metric&period; If `manager` is 0, use the default metrics manager, if initialized&semi; if `manager` is 0 and the default metrics manager has not been initialized, place this metric object in the inactive state (i&period;e&period;, `isActive()` is `false`) in which case instance methods that would otherwise update the metric will have no effect&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Metric(
    char const* category,
    char const* name,
    xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0);
----


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