pub struct RuleSchedule { /* private fields */ }Expand description
When a rule runs and how far back each run searches.
Kibana configures these separately: interval is how often the rule runs
and from is the start of each run’s search window. A window no longer
than the interval leaves gaps between runs whenever a run starts late or
events arrive late, so this type derives from as the interval plus an
additional lookback by which consecutive windows overlap.
Implementations§
Source§impl RuleSchedule
impl RuleSchedule
Sourcepub fn new(interval: Duration, additional_lookback: Duration) -> Result<Self>
pub fn new(interval: Duration, additional_lookback: Duration) -> Result<Self>
Fails with Error::InvalidRequest unless both durations are whole
seconds and the interval is at least one second.
Sourcepub fn every(interval: Duration) -> Result<Self>
pub fn every(interval: Duration) -> Result<Self>
Runs every interval, with windows overlapping by one minute.
pub fn interval(self) -> Duration
Trait Implementations§
Source§impl Clone for RuleSchedule
impl Clone for RuleSchedule
impl Copy for RuleSchedule
Source§impl Debug for RuleSchedule
impl Debug for RuleSchedule
Source§impl Default for RuleSchedule
impl Default for RuleSchedule
impl Eq for RuleSchedule
Source§impl PartialEq for RuleSchedule
impl PartialEq for RuleSchedule
impl StructuralPartialEq for RuleSchedule
Auto Trait Implementations§
impl Freeze for RuleSchedule
impl RefUnwindSafe for RuleSchedule
impl Send for RuleSchedule
impl Sync for RuleSchedule
impl Unpin for RuleSchedule
impl UnsafeUnpin for RuleSchedule
impl UnwindSafe for RuleSchedule
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