BloombergLP::bdlm::MetricsAdapter::registerCollectionCallback

Register a collection callback with a monitoring system.

Synopsis

Declared in <bdlm_metricsadapter.h>

virtual
CallbackHandle
registerCollectionCallback(
    MetricDescriptor const& metricDescriptor,
    Callback const& callback) = 0;

Description

Register the specified callback with a monitoring system, using the specified metricDescriptor for the registration. Return the callback handle to be used with removeCollectionCallback. Note the information used for registration is implementation dependant, and may involve values computed from the supplied arguments.

Return Value

callback handle to be used with removeCollectionCallback

Parameters

NameDescription
metricDescriptordescriptor used for the registration
callbackcollection callback to register