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

Create an object of this class having the specified `metricNamespace`, `metricName`, `instanceNumber`, `objectTypeName`, `objectTypeAbbreviation`, and `objectIdentifier` attribute values&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that implementations of the `bdlm&colon;&colon;MetricsAdapter` protocal will typically use an implementation specific value for the namespace attribute when `metricNamespace &equals;&equals; k&lowbar;USE&lowbar;METRICS&lowbar;ADAPTER&lowbar;NAMESPACE&lowbar;SELECTION` and the object identifier attribute when `objectIdentrifier &equals;&equals; k&lowbar;USE&lowbar;METRICS&lowbar;ADAPTER&lowbar;OBJECT&lowbar;ID&lowbar;SELECTION`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
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]#Created with https://www.mrdocs.com[MrDocs]#
