[#BloombergLP-balm-Metric-2constructor-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric.adoc[Metric]::Metric :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balm_metric.h>` Create a metric object that will record values for the same metric as the specified `original` metric. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/Metric/2constructor-04.adoc[Metric](xref:BloombergLP/balm/Metric.adoc[Metric] const& original); ---- [.small]#xref:BloombergLP/balm/Metric/2constructor-04.adoc[_» more..._]# Create a metric object to collect values for the metric implied by the specified `collector`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/balm/Metric/2constructor-0b3.adoc[Metric](xref:BloombergLP/balm/Collector.adoc[Collector]* collector); ---- [.small]#xref:BloombergLP/balm/Metric/2constructor-0b3.adoc[_» more..._]# Create a metric object to collect values for the specified `metricId`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/balm/Metric/2constructor-0b2.adoc[Metric]( xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId, xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0); ---- [.small]#xref:BloombergLP/balm/Metric/2constructor-0b2.adoc[_» more..._]# Create a metric object to collect values for the metric identified by the specified null‐terminated strings `category` and `name`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balm/Metric/2constructor-0a.adoc[Metric]( char const* category, char const* name, xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0); ---- [.small]#xref:BloombergLP/balm/Metric/2constructor-0a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *original* | metric whose collector association is copied | *collector* | collector identifying the metric to record | *metricId* | identity of the metric to collect | *manager* | metrics manager used to provide a collector (optional) | *category* | null‐terminated category name | *name* | null‐terminated metric name |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#