enum Redis::TimeSeries::DuplicatePolicy

Defined in:

time_series.cr

Enum Members

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 Method Summary

Class methods inherited from struct Enum

from_redis_graph_value(type : Redis::Graph::ValueType, value, cache) from_redis_graph_value

Instance Method Detail

def block? #

[View source]
def first? #

[View source]
def last? #

[View source]
def max? #

[View source]
def min? #

[View source]
def sum? #

[View source]