Struct rustis::commands::TsCreateRuleOptions
source · pub struct TsCreateRuleOptions { /* private fields */ }
Available on crate feature
redis-time-series
only.Expand description
Options for the ts_createrule
command.
Implementations§
source§impl TsCreateRuleOptions
impl TsCreateRuleOptions
sourcepub fn align_timestamp(self, align_timestamp: u64) -> Self
pub fn align_timestamp(self, align_timestamp: u64) -> Self
ensures that there is a bucket that starts exactly at align_timestamp
and aligns all other buckets accordingly. (since RedisTimeSeries v1.8)
It is expressed in milliseconds.
The default value is 0 aligned with the epoch.
For example, if bucket_duration
is 24 hours (24 * 3600 * 1000
), setting align_timestamp
to 6 hours after the epoch (6 * 3600 * 1000
) ensures that each bucket’s timeframe is [06:00 .. 06:00)
.
Trait Implementations§
source§impl Default for TsCreateRuleOptions
impl Default for TsCreateRuleOptions
source§fn default() -> TsCreateRuleOptions
fn default() -> TsCreateRuleOptions
Returns the “default value” for a type. Read more
source§impl ToArgs for TsCreateRuleOptions
impl ToArgs for TsCreateRuleOptions
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 TsCreateRuleOptions
impl RefUnwindSafe for TsCreateRuleOptions
impl Send for TsCreateRuleOptions
impl Sync for TsCreateRuleOptions
impl Unpin for TsCreateRuleOptions
impl UnwindSafe for TsCreateRuleOptions
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