pub struct StreamSummary {Show 18 fields
pub num_requests: u64,
pub num_truncated: u64,
pub truncation_rate: f64,
pub total_bytes: u64,
pub total_blocks: u64,
pub wall_clock: Duration,
pub blocks_per_sec: f64,
pub bytes_per_sec: f64,
pub mean_size_ratio: f64,
pub size_histogram: [u64; 6],
pub mean_bytes_per_block: f64,
pub min_blocks: u64,
pub mean_blocks: f64,
pub max_blocks: u64,
pub max_buffered_bytes_observed: u64,
pub mean_in_flight: f64,
pub num_frontier: u64,
pub num_gap_fill: u64,
}Expand description
Aggregate summary of a stream run, produced by StreamMetrics::summary and
passed to StreamObserver::on_finish.
Fields§
§num_requests: u64Total completed requests.
num_truncated: u64Requests whose response was truncated before the requested end.
truncation_rate: f64num_truncated / num_requests (0 when no requests).
total_bytes: u64Sum of response body sizes.
total_blocks: u64Sum of blocks covered.
wall_clock: DurationWall-clock span of the run (engine-fed when finished, else measured live from when the metrics handle was created).
blocks_per_sec: f64total_blocks / wall_clock (0 when no elapsed time).
bytes_per_sec: f64total_bytes / wall_clock (0 when no elapsed time).
mean_size_ratio: f64Mean size_ratio across requests.
size_histogram: [u64; 6]Size-vs-target histogram counts, see SIZE_BUCKET_LABELS.
mean_bytes_per_block: f64Mean density (total_bytes / total_blocks).
min_blocks: u64Smallest block-range size requested-and-covered.
mean_blocks: f64Mean covered block-range size (total_blocks / num_requests).
max_blocks: u64Largest block-range size covered.
max_buffered_bytes_observed: u64High-water mark of the undelivered reorder buffer, in bytes.
mean_in_flight: f64Mean number of in-flight requests across scheduler iterations.
num_frontier: u64Requests that extended the frontier.
num_gap_fill: u64Requests that backfilled a gap.
Trait Implementations§
Source§impl Clone for StreamSummary
impl Clone for StreamSummary
Source§fn clone(&self) -> StreamSummary
fn clone(&self) -> StreamSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for StreamSummary
impl RefUnwindSafe for StreamSummary
impl Send for StreamSummary
impl Sync for StreamSummary
impl Unpin for StreamSummary
impl UnsafeUnpin for StreamSummary
impl UnwindSafe for StreamSummary
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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