#[non_exhaustive]pub enum HistoryBucket {
Minutes2,
Minutes30,
Hour1,
Hours3,
Hours6,
Hours12,
Day1,
Days2,
Days7,
}Expand description
History windows accepted by v3.8.5 history endpoints.
Every response contains at most 60 points. The wire value is the bucket size in seconds, while variant names describe the resulting history window shown by the panel UI.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Minutes2
Approximately two minutes at two-second resolution.
Minutes30
Approximately thirty minutes at thirty-second resolution.
Hour1
Approximately one hour at one-minute resolution.
Hours3
Approximately three hours at three-minute resolution.
Hours6
Approximately six hours at six-minute resolution.
Hours12
Approximately twelve hours at twelve-minute resolution.
Day1
Approximately one day at 24-minute resolution.
Days2
Approximately two days at 48-minute resolution.
Days7
Approximately seven days at 168-minute resolution.
Trait Implementations§
Source§impl Clone for HistoryBucket
impl Clone for HistoryBucket
impl Copy for HistoryBucket
Source§impl Debug for HistoryBucket
impl Debug for HistoryBucket
impl Eq for HistoryBucket
Source§impl Hash for HistoryBucket
impl Hash for HistoryBucket
Source§impl PartialEq for HistoryBucket
impl PartialEq for HistoryBucket
impl StructuralPartialEq for HistoryBucket
Auto Trait Implementations§
impl Freeze for HistoryBucket
impl RefUnwindSafe for HistoryBucket
impl Send for HistoryBucket
impl Sync for HistoryBucket
impl Unpin for HistoryBucket
impl UnsafeUnpin for HistoryBucket
impl UnwindSafe for HistoryBucket
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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