pub struct RequestSummaries { /* private fields */ }Expand description
Summary statistics for all requests recorded in an InstrumentedObjectStore
Implementations§
Source§impl RequestSummaries
impl RequestSummaries
Sourcepub fn new(requests: &[RequestDetails]) -> Self
pub fn new(requests: &[RequestDetails]) -> Self
Summarizes input RequestDetails
Sourcepub fn to_batch(&self) -> RecordBatch
pub fn to_batch(&self) -> RecordBatch
Convert the summaries into a RecordBatch for display
Results in a table like:
+-----------+----------+-----------+-----------+-----------+-----------+-----------+
| Operation | Metric | min | max | avg | sum | count |
+-----------+----------+-----------+-----------+-----------+-----------+-----------+
| Get | duration | 5.000000s | 5.000000s | 5.000000s | | 1 |
| Get | size | 100 B | 100 B | 100 B | 100 B | 1 |
+-----------+----------+-----------+-----------+-----------+-----------+-----------+Trait Implementations§
Source§impl Default for RequestSummaries
impl Default for RequestSummaries
Source§fn default() -> RequestSummaries
fn default() -> RequestSummaries
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestSummaries
impl RefUnwindSafe for RequestSummaries
impl Send for RequestSummaries
impl Sync for RequestSummaries
impl Unpin for RequestSummaries
impl UnwindSafe for RequestSummaries
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> 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 moreCreates a shared type from an unshared type.
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.