BloombergLP::balm::Metric::update

Increase the event count by 1 and add the specified value to the total recorded value.

Synopsis

Declared in <balm_metric.h>

void
update(double value);

Description

If value is less than the current minimum recorded value of the metric, set the new minimum value to be value; if value is greater than the current maximum recorded value, set the new maximum value to be value. If, however, this metric is inactive (i.e., isActive() is false), then this method has no effect.

Parameters

NameDescription
valuemeasurement value for the recorded event