pub struct SourceSkew {
pub total: usize,
pub sources: usize,
pub min: usize,
pub max: usize,
pub mean: f64,
pub max_share: f64,
pub min_share: f64,
pub ratio: f64,
pub per_source: Vec<SourceShare>,
}Expand description
Aggregate skew metrics for per-source sample counts.
Fields§
§total: usizeTotal sample count across all sources.
sources: usizeNumber of sources represented in the metric.
min: usizeMinimum per-source sample count.
max: usizeMaximum per-source sample count.
mean: f64Mean per-source sample count.
Largest source share (max / total).
Smallest source share (min / total).
ratio: f64Imbalance ratio (max / min, or inf when min == 0).
per_source: Vec<SourceShare>Per-source counts and shares sorted descending by count.
Trait Implementations§
Source§impl Clone for SourceSkew
impl Clone for SourceSkew
Source§fn clone(&self) -> SourceSkew
fn clone(&self) -> SourceSkew
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceSkew
impl Debug for SourceSkew
Source§impl PartialEq for SourceSkew
impl PartialEq for SourceSkew
Source§fn eq(&self, other: &SourceSkew) -> bool
fn eq(&self, other: &SourceSkew) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceSkew
Auto Trait Implementations§
impl Freeze for SourceSkew
impl RefUnwindSafe for SourceSkew
impl Send for SourceSkew
impl Sync for SourceSkew
impl Unpin for SourceSkew
impl UnsafeUnpin for SourceSkew
impl UnwindSafe for SourceSkew
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