pub struct AnalyticsSnapshot {
pub total_queries: u64,
pub total_time: Duration,
pub total_errors: u64,
pub error_rate: f64,
pub qps: f64,
pub avg_time: Duration,
pub by_operation: HashMap<OperationType, OperationSnapshot>,
pub by_user: HashMap<String, OperationSnapshot>,
pub by_database: HashMap<String, OperationSnapshot>,
pub by_node: HashMap<String, OperationSnapshot>,
}Expand description
Snapshot of analytics metrics
Fields§
§total_queries: u64Total queries executed
total_time: DurationTotal execution time
total_errors: u64Total errors
error_rate: f64Error rate (0.0 - 1.0)
qps: f64Queries per second (approximate)
avg_time: DurationAverage query time
by_operation: HashMap<OperationType, OperationSnapshot>Metrics by operation type
by_user: HashMap<String, OperationSnapshot>Metrics by user
by_database: HashMap<String, OperationSnapshot>Metrics by database
by_node: HashMap<String, OperationSnapshot>Metrics by node
Trait Implementations§
Source§impl Clone for AnalyticsSnapshot
impl Clone for AnalyticsSnapshot
Source§fn clone(&self) -> AnalyticsSnapshot
fn clone(&self) -> AnalyticsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for AnalyticsSnapshot
impl RefUnwindSafe for AnalyticsSnapshot
impl Send for AnalyticsSnapshot
impl Sync for AnalyticsSnapshot
impl Unpin for AnalyticsSnapshot
impl UnsafeUnpin for AnalyticsSnapshot
impl UnwindSafe for AnalyticsSnapshot
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