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

Increase the event count by 1 and add the specified `value` to the total recorded value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
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`&semi; if `value` is greater than the current maximum recorded value, set the new maximum value to be `value`&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
| *value*
| measurement value for the recorded event
|===


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