BloombergLP::balm::IntegerMetric::accumulateCountTotalMinMax

Accumulate the specified count, total, min, and max into this metric.

Synopsis

Declared in <balm_integermetric.h>

void
accumulateCountTotalMinMax(
    int count,
    int total,
    int min,
    int max);

Description

Increase the event count by the specified count and add the specified total to the accumulated total; if the specified min is less than the current minimum recorded value of the metric, set the new minimum value to be min; if the specified max is greater than the current maximum recorded value, set the new maximum value to be max. If, however, this integer metric is inactive (i.e., isActive() is false), then this method has no effect.

Parameters

NameDescription
countnumber of events to add to the event count
totalamount to add to the accumulated total
mincandidate minimum measurement value
maxcandidate maximum measurement value