pub struct QueryMetrics {
pub query_type: String,
pub execution_count: u64,
pub total_execution_time_ms: u64,
pub average_execution_time_ms: f64,
pub max_execution_time_ms: u64,
pub min_execution_time_ms: u64,
pub cache_hit_rate: f64,
pub error_count: u64,
}
Expand description
Query metrics for monitoring
Fields§
§query_type: String
§execution_count: u64
§total_execution_time_ms: u64
§average_execution_time_ms: f64
§max_execution_time_ms: u64
§min_execution_time_ms: u64
§cache_hit_rate: f64
§error_count: u64
Trait Implementations§
Source§impl Clone for QueryMetrics
impl Clone for QueryMetrics
Source§fn clone(&self) -> QueryMetrics
fn clone(&self) -> QueryMetrics
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 QueryMetrics
impl Debug for QueryMetrics
Source§impl<'de> Deserialize<'de> for QueryMetrics
impl<'de> Deserialize<'de> for QueryMetrics
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 QueryMetrics
impl RefUnwindSafe for QueryMetrics
impl Send for QueryMetrics
impl Sync for QueryMetrics
impl Unpin for QueryMetrics
impl UnwindSafe for QueryMetrics
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