pub struct IntervalLogHistogram<'a> { /* private fields */ }
Expand description
An individual interval histogram parsed from an interval log.
Implementations§
source§impl<'a> IntervalLogHistogram<'a>
impl<'a> IntervalLogHistogram<'a>
sourcepub fn start_timestamp(&self) -> Duration
pub fn start_timestamp(&self) -> Duration
Timestamp of the start of the interval in seconds, expressed as a Duration
relative to
some start point.
The timestamp may be absolute vs the epoch, or there may be a StartTime
or BaseTime
for
the log, in which case you may wish to consider this number as a delta vs those timestamps.
See the module-level documentation about timestamps.
sourcepub fn max(&self) -> f64
pub fn max(&self) -> f64
Max value in the encoded histogram
This max value is the max of the histogram divided by some scaling factor (which may be 1.0).
sourcepub fn encoded_histogram(&self) -> &'a str
pub fn encoded_histogram(&self) -> &'a str
Base64-encoded serialized histogram.
If you need the deserialized histogram, base64-decode and use a Deserializer
on the
resulting bytes.
Trait Implementations§
source§impl<'a> Debug for IntervalLogHistogram<'a>
impl<'a> Debug for IntervalLogHistogram<'a>
source§impl<'a> PartialEq for IntervalLogHistogram<'a>
impl<'a> PartialEq for IntervalLogHistogram<'a>
impl<'a> StructuralPartialEq for IntervalLogHistogram<'a>
Auto Trait Implementations§
impl<'a> Freeze for IntervalLogHistogram<'a>
impl<'a> RefUnwindSafe for IntervalLogHistogram<'a>
impl<'a> Send for IntervalLogHistogram<'a>
impl<'a> Sync for IntervalLogHistogram<'a>
impl<'a> Unpin for IntervalLogHistogram<'a>
impl<'a> UnwindSafe for IntervalLogHistogram<'a>
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