pub struct OperationMetrics {
pub total_operations: u64,
pub operations_by_type: HashMap<String, u64>,
pub success_rate: f64,
pub avg_operation_time_ms: f64,
pub p95_operation_time_ms: f64,
pub p99_operation_time_ms: f64,
pub queue_depths: HashMap<String, usize>,
pub retry_stats: RetryMetrics,
}Expand description
Operation-level metrics
Fields§
§total_operations: u64Total operations performed
operations_by_type: HashMap<String, u64>Operations by type
success_rate: f64Success rate (0.0 to 1.0)
avg_operation_time_ms: f64Average operation time in milliseconds
p95_operation_time_ms: f6495th percentile operation time
p99_operation_time_ms: f6499th percentile operation time
queue_depths: HashMap<String, usize>Queue depths by type
retry_stats: RetryMetricsRetry statistics
Trait Implementations§
Source§impl Clone for OperationMetrics
impl Clone for OperationMetrics
Source§fn clone(&self) -> OperationMetrics
fn clone(&self) -> OperationMetrics
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 OperationMetrics
impl Debug for OperationMetrics
Source§impl<'de> Deserialize<'de> for OperationMetrics
impl<'de> Deserialize<'de> for OperationMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OperationMetrics
impl RefUnwindSafe for OperationMetrics
impl Send for OperationMetrics
impl Sync for OperationMetrics
impl Unpin for OperationMetrics
impl UnwindSafe for OperationMetrics
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