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

Constructors

== Synopses

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

Create an integer metric object having the same value as `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/IntegerMetric/2constructor-044.adoc[IntegerMetric](xref:BloombergLP/balm/IntegerMetric.adoc[IntegerMetric] const& original);
----

[.small]#xref:BloombergLP/balm/IntegerMetric/2constructor-044.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/balm/IntegerMetric/2constructor-0fc.adoc[_» more&period;&period;&period;_]#

Create an integer metric object for the specified `metricId`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/balm/IntegerMetric/2constructor-0e.adoc[IntegerMetric](
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId,
    xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0);
----

[.small]#xref:BloombergLP/balm/IntegerMetric/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create an integer metric object for the specified `category` and `name`&period;


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

[.small]#xref:BloombergLP/balm/IntegerMetric/2constructor-04c.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| integer metric to copy
| *collector*
| integer collector used to record metric values
| *metricId*
| identity of the metric to collect
| *manager*
| metrics manager used to provide a collector (0 for default)
| *category*
| null&hyphen;terminated metric category name
| *name*
| null&hyphen;terminated metric name
|===


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