pub struct HealthMonitor {
pub connection_stats: Vec<Arc<RwLock<ConnectionStats>>>,
pub manager_start_time: Instant,
pub monitoring_task: Option<JoinHandle<()>>,
pub health_check_interval: Duration,
}Expand description
Health monitor for tracking connection and system health
Fields§
§connection_stats: Vec<Arc<RwLock<ConnectionStats>>>§manager_start_time: Instant§monitoring_task: Option<JoinHandle<()>>§health_check_interval: DurationImplementations§
Source§impl HealthMonitor
impl HealthMonitor
Sourcepub fn new(
connection_stats: Vec<Arc<RwLock<ConnectionStats>>>,
health_check_interval: Duration,
) -> Self
pub fn new( connection_stats: Vec<Arc<RwLock<ConnectionStats>>>, health_check_interval: Duration, ) -> Self
Create a new health monitor
Sourcepub async fn get_manager_stats(&self) -> ManagerStats
pub async fn get_manager_stats(&self) -> ManagerStats
Get comprehensive manager statistics
Sourcepub async fn get_health_summary(&self) -> HealthSummary
pub async fn get_health_summary(&self) -> HealthSummary
Get health summary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HealthMonitor
impl !RefUnwindSafe for HealthMonitor
impl Send for HealthMonitor
impl Sync for HealthMonitor
impl Unpin for HealthMonitor
impl !UnwindSafe for HealthMonitor
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