Comment on page
Gets the average value per time interval. The size of the time intervals is configurable and dynamic.
The time interval used changes depending on how many points you wish to hold per aggregation key. You can change the time interval and/or the number of points per interval to suit your graph.
AVG_TIME_SERIES([MAX_POINTS, INTERVALS,] TIME, VALUE)
(Optional) The maximum amount of points to hold before reducing the resolution to the next interval size.
[60000, 300000, 600000, 1800000, 3600000, 10800000, 21600000, 43200000, 86400000]
(Optional) Array of integers representing the time interval buckets in epoch ms for which to return data.
If the aggregation has more than
MAX_POINTSvalues in the given window, it will use the next interval from this array to reduce the amount of points to comply with
The field with the time in epoch ms that
VALUEis associated with.
Type: any type
The field to average per
Returns an array of key value pairs where the key is the time (in epoch ms) and the value is the average of
VALUEfrom within that time frame.