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

Create an integer metric object that uses the specified `collector`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
IntegerMetric(xref:BloombergLP/balm/IntegerCollector.adoc[IntegerCollector]* collector);
----

== Description

Create an integer metric object to collect values for the metric implied by the specified `collector` (i&period;e&period;, `collector&hyphen;&gt;metricId()`)&period; The behavior is undefined unless `collector` is a valid address of a `IntegerCollector` object and the collector object supplied has a valid id (i&period;e&period;, `collector&hyphen;&gt;metricId()&period;isValid()`)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *collector*
| integer collector used to record metric values
|===


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