[#BloombergLP-bdlm-MetricDescriptor-2constructor-02]
= 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 default attribute values&period;

== Synopsis

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

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

== Description

Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The default value for the namespace attribute is `k&lowbar;USE&lowbar;METRICS&lowbar;ADAPTER&lowbar;NAMESPACE&lowbar;SELECTION` and the default value for the object identifier attribute is `k&lowbar;USE&lowbar;METRICS&lowbar;ADAPTER&lowbar;OBJECT&lowbar;ID&lowbar;SELECTION`&period; The residual attibutes default to an empty string, except the instance number which defaults to 0&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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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