Enum rustis::commands::TsDuplicatePolicy
source · pub enum TsDuplicatePolicy {
Block,
First,
Last,
Min,
Max,
Sum,
}
Available on crate feature
redis-time-series
only.Expand description
Policy
for handling samples with identical timestamps
It is used with one of the following values:
Variants§
Block
ignore any newly reported value and reply with an error
First
ignore any newly reported value
Last
override with the newly reported value
Min
only override if the value is lower than the existing value
Max
only override if the value is higher than the existing value
Sum
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.
Trait Implementations§
source§impl Debug for TsDuplicatePolicy
impl Debug for TsDuplicatePolicy
source§impl<'de> Deserialize<'de> for TsDuplicatePolicy
impl<'de> Deserialize<'de> for TsDuplicatePolicy
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 TsDuplicatePolicy
impl ToArgs for TsDuplicatePolicy
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 TsDuplicatePolicy
impl RefUnwindSafe for TsDuplicatePolicy
impl Send for TsDuplicatePolicy
impl Sync for TsDuplicatePolicy
impl Unpin for TsDuplicatePolicy
impl UnwindSafe for TsDuplicatePolicy
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