[#BloombergLP-bdlm-MetricDescriptor-2constructor-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlm.adoc[bdlm]::xref:BloombergLP/bdlm/MetricDescriptor.adoc[MetricDescriptor]::MetricDescriptor
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdlm&lowbar;metricdescriptor&period;h&gt;`

Create an object of this class having the default attribute values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlm/MetricDescriptor/2constructor-02.adoc[MetricDescriptor](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlm/MetricDescriptor/2constructor-02.adoc[_» more&period;&period;&period;_]#

Create an object of this class having the same value as the specified `original` one&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlm/MetricDescriptor/2constructor-0c.adoc[MetricDescriptor](
    xref:BloombergLP/bdlm/MetricDescriptor.adoc[MetricDescriptor] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlm/MetricDescriptor/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Create an object of this class having the specified attribute values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlm/MetricDescriptor/2constructor-03.adoc[MetricDescriptor](
    std::string&lowbar;view const& metricNamespace,
    std::string&lowbar;view const& metricName,
    xref:BloombergLP/bdlm/InstanceCount/Value.adoc[InstanceCount::Value] instanceNumber,
    std::string&lowbar;view const& objectTypeName,
    std::string&lowbar;view const& objectTypeAbbreviation,
    std::string&lowbar;view const& objectIdentifier,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdlm/MetricDescriptor/2constructor-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
| *original*
| object providing the value for the new descriptor
| *metricNamespace*
| grouping value for published metrics
| *metricName*
| name of the metric
| *instanceNumber*
| instance number of the object generating the metric
| *objectTypeName*
| name of the type generating the metric
| *objectTypeAbbreviation*
| abbreviation for the type generating the metric
| *objectIdentifier*
| application unique identifier for the metric
|===


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