pub struct Histogram {
pub buckets: Vec<(BucketRequest, BucketResponse)>,
}Expand description
Represents a histogram of journal log entries over time.
A histogram contains bucketed data where each bucket represents a time range and holds aggregated counts of field values and filtering results.
Fields§
§buckets: Vec<(BucketRequest, BucketResponse)>Implementations§
Source§impl Histogram
impl Histogram
Sourcepub fn start_time(&self) -> Seconds
pub fn start_time(&self) -> Seconds
Returns the start time of the histogram (first bucket’s start time).
Sourcepub fn end_time(&self) -> Seconds
pub fn end_time(&self) -> Seconds
Returns the end time of the histogram (last bucket’s end time).
Sourcepub fn bucket_duration(&self) -> Seconds
pub fn bucket_duration(&self) -> Seconds
Returns the duration of each bucket in seconds.
Sourcepub fn discovered_fields(&self) -> Vec<FieldName>
pub fn discovered_fields(&self) -> Vec<FieldName>
Returns all discovered field names from the histogram buckets in a deterministic order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnsafeUnpin for Histogram
impl UnwindSafe for Histogram
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> 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