pub struct SessionAnalytics {
pub total_sessions: usize,
pub active_sessions: usize,
pub total_requests: usize,
pub successful_requests: usize,
pub failed_requests: usize,
pub avg_session_duration: Duration,
pub top_clients: Vec<(String, usize)>,
pub top_methods: Vec<(String, usize)>,
pub requests_per_minute: f64,
}
Expand description
Session analytics and usage statistics
Fields§
§total_sessions: usize
Total number of sessions created
active_sessions: usize
Currently active sessions
total_requests: usize
Total requests processed
successful_requests: usize
Total successful requests
failed_requests: usize
Total failed requests
avg_session_duration: Duration
Average session duration
top_clients: Vec<(String, usize)>
Most active clients (top 10)
top_methods: Vec<(String, usize)>
Most used tools/methods (top 10)
requests_per_minute: f64
Request rate (requests per minute)
Trait Implementations§
Source§impl Clone for SessionAnalytics
impl Clone for SessionAnalytics
Source§fn clone(&self) -> SessionAnalytics
fn clone(&self) -> SessionAnalytics
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 SessionAnalytics
impl Debug for SessionAnalytics
Source§impl<'de> Deserialize<'de> for SessionAnalytics
impl<'de> Deserialize<'de> for SessionAnalytics
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 SessionAnalytics
impl RefUnwindSafe for SessionAnalytics
impl Send for SessionAnalytics
impl Sync for SessionAnalytics
impl Unpin for SessionAnalytics
impl UnwindSafe for SessionAnalytics
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