Redis::TimeSeries::DuplicatePolicy
Inherits Enum < Comparable < Value < Object
Constants
BLOCK = 0
An error will occur for any out-of-order sample
FIRST = 1
Ignore the new value
LAST = 2
Override with the latest value
MIN = 3
Only override if the new value is lower than the existing value
MAX = 4
Only override if the new value is higher than the existing value
SUM = 5
If a previous sample exists, add the new sample to it so that the
updated value is equal to previous + new. If no previous sample
exists, set the updated value equal to the new value.