[#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 `<bdlm_metricdescriptor.h>` Create an object of this class having the default attribute values. [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..._]# Create an object of this class having the same value as the specified `original` one. [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..._]# Create an object of this class having the specified attribute values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlm/MetricDescriptor/2constructor-03.adoc[MetricDescriptor]( std::string_view const& metricNamespace, std::string_view const& metricName, xref:BloombergLP/bdlm/InstanceCount/Value.adoc[InstanceCount::Value] instanceNumber, std::string_view const& objectTypeName, std::string_view const& objectTypeAbbreviation, std::string_view const& objectIdentifier, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlm/MetricDescriptor/2constructor-03.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; 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]#