[#BloombergLP-balm-IntegerMetric-2constructor-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/IntegerMetric.adoc[IntegerMetric]::IntegerMetric :relfileprefix: ../../../ :mrdocs: Create an integer metric object to collect values for the specified `metricId`. Optionally specify a metrics `manager` used to provide a collector for `metricId`. If `manager` is 0, use the default metrics manager, if initialized; if `manager` is 0 and the default metrics manager has not been initialized, place this metric object in the inactive state (i.e., `isActive()` is `false`) in which case instance methods that would otherwise update the metric will have no effect. The behavior is undefined unless `metricId` is a valid id returned by the `MetricRepository` object owned by the indicated metrics manager. == Synopsis Declared in `<balm_integermetric.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit IntegerMetric( xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId, xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#