BloombergLP::balm::IntegerMetric::IntegerMetric

Create an integer metric object for the specified category and name.

Synopsis

Declared in <balm_integermetric.h>

IntegerMetric(
    char const* category,
    char const* name,
    MetricsManager* manager = 0);

Description

Create an integer metric object to collect values for the metric identified by the specified category and name. Optionally specify a metrics manager used to provide a collector for the indicated metric. If manager is 0, use the default metrics manager, if initialized; if manager is 0 and the default metrics manager has not been initialized, place this metric object in the inactive state (i.e., isActive() is false) in which case instance methods that would otherwise update the metric will have no effect. The behavior is undefined unless category and name are null-terminated.

Parameters

NameDescription
categorynull-terminated metric category name
namenull-terminated metric name
managermetrics manager used to provide a collector (0 for default)