[#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 to collect values for the metric implied by the specified `collector` (i.e., `collector‐>metricId()`). The behavior is undefined unless `collector` is a valid address of a `IntegerCollector` object and the collector object supplied has a valid id (i.e., `collector‐>metricId().isValid()`). == Synopsis Declared in `<balm_integermetric.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit IntegerMetric(xref:BloombergLP/balm/IntegerCollector.adoc[IntegerCollector]* collector); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#