[#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. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The default value for the namespace attribute is `k_USE_METRICS_ADAPTER_NAMESPACE_SELECTION` and the default value for the object identifier attribute is `k_USE_METRICS_ADAPTER_OBJECT_ID_SELECTION`. The residual attibutes default to an empty string, except the instance number which defaults to 0. Note that implementations of the `bdlm::MetricsAdapter` protocal will typically use an implementation specific value for the namespace attribute when `metricNamespace == k_USE_METRICS_ADAPTER_NAMESPACE_SELECTION` and the object identifier attribute when `objectIdentrifier == k_USE_METRICS_ADAPTER_OBJECT_ID_SELECTION`. [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. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [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 `metricNamespace`, `metricName`, `instanceNumber`, `objectTypeName`, `objectTypeAbbreviation`, and `objectIdentifier` attribute values. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. Note that implementations of the `bdlm::MetricsAdapter` protocal will typically use an implementation specific value for the namespace attribute when `metricNamespace == k_USE_METRICS_ADAPTER_NAMESPACE_SELECTION` and the object identifier attribute when `objectIdentrifier == k_USE_METRICS_ADAPTER_OBJECT_ID_SELECTION`. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#