pub enum TsAggregationType {
Show 13 variants
Avg,
Sum,
Min,
Max,
Range,
Count,
First,
Last,
StdP,
StdS,
VarP,
VarS,
Twa,
}
Available on crate feature
redis-time-series
only.Expand description
Aggregation type for the ts_createrule
and ts_mrange
commands.
Variants§
Avg
Arithmetic mean of all values
Sum
Sum of all values
Min
Minimum value
Max
Maximum value
Range
Difference between the highest and the lowest value
Count
Number of values
First
Value with lowest timestamp in the bucket
Last
Value with highest timestamp in the bucket
StdP
Population standard deviation of the values
StdS
Sample standard deviation of the values
VarP
Population variance of the values
VarS
Sample variance of the values
Twa
Time-weighted average over the bucket’s timeframe (since RedisTimeSeries v1.8)
Trait Implementations§
Source§impl Debug for TsAggregationType
impl Debug for TsAggregationType
Source§impl<'de> Deserialize<'de> for TsAggregationType
impl<'de> Deserialize<'de> for TsAggregationType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ToArgs for TsAggregationType
impl ToArgs for TsAggregationType
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for TsAggregationType
impl RefUnwindSafe for TsAggregationType
impl Send for TsAggregationType
impl Sync for TsAggregationType
impl Unpin for TsAggregationType
impl UnwindSafe for TsAggregationType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more