[#BloombergLP-balm-BdlmMetricsAdapter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::BdlmMetricsAdapter :relfileprefix: ../../ :mrdocs: This class provides a concrete `bdlm::MetricsAdapter` backed by `balm::MetricsManager`. == Synopsis Declared in `<balm_bdlmmetricsadapter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BdlmMetricsAdapter : public xref:BloombergLP/bdlm/MetricsAdapter.adoc[bdlm::MetricsAdapter] ---- == Description This class implements a pure abstract interface for clients and suppliers of metrics adapters. The implementation registers callbacks with a provided `balm::MetricsManager` to enable monitoring of statistics collection objects. == Base Classes [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/bdlm/MetricsAdapter.adoc[bdlm::MetricsAdapter]` | This protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlm/MetricsAdapter/Callback.adoc[`Callback`] | Callback functor invoked to collect metric values. | xref:BloombergLP/bdlm/MetricsAdapter/CallbackHandle.adoc[`CallbackHandle`] | Opaque handle identifying a registered collection callback. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balm/BdlmMetricsAdapter/2constructor.adoc[`BdlmMetricsAdapter`] [.small]#[constructor]# | Create a `BdlmMetricsAdapter` with the specified manager, namespace, and object‐identifier prefix. | xref:BloombergLP/balm/BdlmMetricsAdapter/2destructor.adoc[`~BdlmMetricsAdapter`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this `BdlmMetricsAdapter` object. | xref:BloombergLP/balm/BdlmMetricsAdapter/allocator.adoc[`allocator`] | Return the allocator used by this object to supply memory. | xref:BloombergLP/balm/BdlmMetricsAdapter/defaultMetricNamespace.adoc[`defaultMetricNamespace`] | Return the namespace attribute value to be used as the default value for `MetricDescriptor` instances. | xref:BloombergLP/balm/BdlmMetricsAdapter/defaultObjectIdentifierPrefix.adoc[`defaultObjectIdentifierPrefix`] | Return a string to be used as the default prefix for a `MetricDescriptor` object identifier attribute value. | xref:BloombergLP/balm/BdlmMetricsAdapter/registerCollectionCallback-02.adoc[`registerCollectionCallback`] | `registerCollectionCallback` overloads | xref:BloombergLP/balm/BdlmMetricsAdapter/removeCollectionCallback.adoc[`removeCollectionCallback`] [.small]#[virtual]# | Remove the collection callback associated with the specified `handle`. | xref:BloombergLP/balm/BdlmMetricsAdapter/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<BdlmMetricsAdapter, UsesBslmaAllocator>`] | Declare that this type uses a `bslma` allocator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#