This class provides a concrete bdlm::MetricsAdapter backed by balm::MetricsManager.
Declared in <balm_bdlmmetricsadapter.h>
class BdlmMetricsAdapter
: public bdlm::MetricsAdapter
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.
| Name | Description |
|---|---|
bdlm::MetricsAdapter | This protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters. |
| Name | Description |
|---|---|
Callback | Callback functor invoked to collect metric values. |
CallbackHandle | Opaque handle identifying a registered collection callback. |
| Name | Description |
|---|---|
BdlmMetricsAdapter [constructor] | Create a BdlmMetricsAdapter with the specified manager, namespace, and object-identifier prefix. |
~BdlmMetricsAdapter [destructor] [virtual] | Destroy this BdlmMetricsAdapter object. |
allocator | Return the allocator used by this object to supply memory. |
defaultMetricNamespace | Return the namespace attribute value to be used as the default value for MetricDescriptor instances. |
defaultObjectIdentifierPrefix | Return a string to be used as the default prefix for a MetricDescriptor object identifier attribute value. |
registerCollectionCallback | registerCollectionCallback overloads |
removeCollectionCallback [virtual] | Remove the collection callback associated with the specified handle. |
operator BloombergLP::bslmf::NestedTraitDeclaration<BdlmMetricsAdapter, UsesBslmaAllocator> | Declare that this type uses a bslma allocator. |