enum
Redis::TimeSeries::DuplicatePolicy
Defined in:
time_series.crEnum 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
-
#block?
Returns
trueif this enum value equalsBLOCK -
#first?
Returns
trueif this enum value equalsFIRST -
#last?
Returns
trueif this enum value equalsLAST -
#max?
Returns
trueif this enum value equalsMAX -
#min?
Returns
trueif this enum value equalsMIN -
#sum?
Returns
trueif this enum value equalsSUM
Class methods inherited from struct Enum
from_graph_result(result : Int64)from_graph_result(result : String)
from_graph_result(result : Redis::Graph::Value) from_graph_result, from_redis_graph_value(type : Redis::Graph::ValueType, value, cache) from_redis_graph_value