[#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 `<balm_integermetric.h>` Create an integer metric object that will record values for the same metric (i.e., using the same `IntegerCollector` object) as the specified `original` integer metric. If the `original` metric is inactive (i.e., `isActive() == false`), then this metric will similarly be inactive. [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..._]# 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()`). [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..._]# 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. [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..._]# Create an integer metric object to collect values for the metric identified by the specified `category` and `name`. Optionally specify a metrics `manager` used to provide a collector for the indicated metric. 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 `category` and `name` are null‐terminated. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#