[#BloombergLP-bdlm-MetricsAdapter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlm.adoc[bdlm]::MetricsAdapter :relfileprefix: ../../ :mrdocs: This protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters. == Synopsis Declared in `<bdlm_metricsadapter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class MetricsAdapter; ---- == 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/bdlm/MetricsAdapter/2destructor.adoc[`~MetricsAdapter`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this `MetricsAdapter`. | xref:BloombergLP/bdlm/MetricsAdapter/registerCollectionCallback.adoc[`registerCollectionCallback`] [.small]#[virtual]# | Register a collection callback with a monitoring system. | xref:BloombergLP/bdlm/MetricsAdapter/removeCollectionCallback.adoc[`removeCollectionCallback`] [.small]#[virtual]# | Remove the callback associated with the specified `handle`. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balm/BdlmMetricsAdapter.adoc[`BdlmMetricsAdapter`] | This class provides a concrete `bdlm::MetricsAdapter` backed by `balm::MetricsManager`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#