pub struct LoadTestMetrics {
pub start_time: Option<Instant>,
pub connections: usize,
pub peak_connections: usize,
pub queries_sent: u64,
pub queries_succeeded: u64,
pub queries_failed: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub latencies: Vec<Duration>,
pub memory_samples: Vec<u64>,
pub errors: Vec<String>,
}Expand description
Metrics tracking for load tests
Fields§
§start_time: Option<Instant>Test start time
connections: usizeCurrent number of connections
peak_connections: usizePeak number of connections
queries_sent: u64Number of queries sent
queries_succeeded: u64Number of successful queries
queries_failed: u64Number of failed queries
bytes_sent: u64Bytes sent
bytes_received: u64Bytes received
latencies: Vec<Duration>Latency samples
memory_samples: Vec<u64>Memory usage samples
errors: Vec<String>Error messages
Trait Implementations§
Source§impl Clone for LoadTestMetrics
impl Clone for LoadTestMetrics
Source§fn clone(&self) -> LoadTestMetrics
fn clone(&self) -> LoadTestMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 LoadTestMetrics
impl Debug for LoadTestMetrics
Source§impl Default for LoadTestMetrics
impl Default for LoadTestMetrics
Source§fn default() -> LoadTestMetrics
fn default() -> LoadTestMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadTestMetrics
impl RefUnwindSafe for LoadTestMetrics
impl Send for LoadTestMetrics
impl Sync for LoadTestMetrics
impl Unpin for LoadTestMetrics
impl UnwindSafe for LoadTestMetrics
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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