DECAYED_SUM
Performs a sum of decayed values. That sum is based on the decay factor and the age of the original data.
Syntax
DECAYED_SUM (DECAY FACTOR, DECAY_INTERVAL, VALUE, TIME)
Arguments
DECAY FACTOR:
Percentage decay for each time interval.
DECAY_INTERVAL:
Length of time between decays.
(In the example below, the entries are one minute apart, but the time interval
is every 30 seconds.)
VALUE:
The field being aggregated.
TIME:
The time field.
Returns
A decimal value.
Example
Data
Query
For each server, calculate the decayed sum of CPU usage, with 30 second decay intervals and 5% decay per decay interval:
Results
Related Functions
Dialog
Last updated