[#BloombergLP-balm-Metric-accumulateCountTotalMinMax]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metric.adoc[Metric]::accumulateCountTotalMinMax
:relfileprefix: ../../../
:mrdocs:

Accumulate the specified `count`, `total`, `min`, and `max` into this metric&period;

== Synopsis

Declared in `&lt;balm&lowbar;metric&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
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&semi; if the specified `min` is less than the current minimum recorded value of the metric, set the new minimum value to be `min`&semi; if the specified `max` is greater than the current maximum recorded value, set the new maximum value to be `max`&period; If, however, this metric is inactive (i&period;e&period;, `isActive()` is `false`), then this method has no effect&period;

== Parameters

[cols="1,4"]
|===
| 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
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
