BloombergLP::balm::BdlmMetricsAdapter

This class provides a concrete bdlm::MetricsAdapter backed by balm::MetricsManager.

Synopsis

Declared in <balm_bdlmmetricsadapter.h>

class BdlmMetricsAdapter
    : public 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

NameDescription
bdlm::MetricsAdapterThis protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters.

Type Aliases

NameDescription
Callback Callback functor invoked to collect metric values.
CallbackHandle Opaque handle identifying a registered collection callback.

Member Functions

NameDescription
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.