BloombergLP::balm::BdlmMetricsAdapter::BdlmMetricsAdapter

Create a BdlmMetricsAdapter with the specified manager, namespace, and object-identifier prefix.

Synopsis

Declared in <balm_bdlmmetricsadapter.h>

BdlmMetricsAdapter(
    MetricsManager* metricsManager,
    std::string_view const& metricNamespace,
    std::string_view const& objectIdentifierPrefix,
    bslma::Allocator* basicAllocator = 0);

Description

Create a BdlmMetricsAdapter object that uses the specified metricsManager to register and unregister collection callback functors, the specified metricNamespace as the value returned by defaultNamespace(), and the specified objectIdentifierPrefix as the value returned by defaultObjectIdentifierPrefix. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
metricsManagermetrics manager used to register callbacks
metricNamespacedefault namespace attribute value
objectIdentifierPrefixdefault object-identifier prefix
basicAllocatorallocator used to supply memory