enum

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.

Instance methods

block?

Returns true if this enum value equals BLOCK

Source
first?

Returns true if this enum value equals FIRST

Source
last?

Returns true if this enum value equals LAST

Source
max?

Returns true if this enum value equals MAX

Source
min?

Returns true if this enum value equals MIN

Source
sum?

Returns true if this enum value equals SUM

Source