pub struct History { /* private fields */ }Implementations§
Source§impl History
impl History
pub fn new(retention_secs: u64, interval_secs: u64) -> History
pub fn capacity(&self) -> usize
pub fn interval_ms(&self) -> u64
Sourcepub fn retention_ms(&self) -> u64
pub fn retention_ms(&self) -> u64
The retention in milliseconds: no chart window may go beyond it.
pub fn series(&self, node: &str, series: Series) -> Option<&Ring>
Sourcepub fn sample(&mut self, now: u64, status: &ClusterStatus) -> bool
pub fn sample(&mut self, now: u64, status: &ClusterStatus) -> bool
Takes a sample of every node of a status read, if the interval has passed since the last one. The sample of an incomplete read is kept, marked as such.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more