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

Synopsis

Declared in <balm_metric.h>

void
accumulateCountTotalMinMax(
    int count,
    double total,
    double min,
    double 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 metric is inactive (i.e., isActive() is false), then this method has no effect.

Parameters

Name

Description

count

number of events to add to the event count

total

amount to add to the accumulated total

min

candidate minimum measurement value

max

candidate maximum measurement value

Created with MrDocs