pub struct MonitoringSystem { /* private fields */ }Expand description
Comprehensive monitoring system
Implementations§
Source§impl MonitoringSystem
impl MonitoringSystem
Sourcepub fn new(config: MonitoringConfig) -> MonitoringSystem
pub fn new(config: MonitoringConfig) -> MonitoringSystem
Create a new monitoring system
Sourcepub async fn register_health_check(&self, check: Box<dyn HealthCheck>)
pub async fn register_health_check(&self, check: Box<dyn HealthCheck>)
Register a health check
Sourcepub async fn health_check(&self) -> HealthReport
pub async fn health_check(&self) -> HealthReport
Run all health checks and generate a report
Sourcepub async fn record_request(&self, request: RequestMetrics)
pub async fn record_request(&self, request: RequestMetrics)
Record a request for metrics
Sourcepub async fn get_metrics(&self) -> PerformanceMetrics
pub async fn get_metrics(&self) -> PerformanceMetrics
Get current performance metrics
Sourcepub async fn start_periodic_health_checks(&self)
pub async fn start_periodic_health_checks(&self)
Start periodic health checks
Sourcepub async fn update_system_metrics(&self, active_connections: u64)
pub async fn update_system_metrics(&self, active_connections: u64)
Update system resource metrics
Auto Trait Implementations§
impl !RefUnwindSafe for MonitoringSystem
impl !UnwindSafe for MonitoringSystem
impl Freeze for MonitoringSystem
impl Send for MonitoringSystem
impl Sync for MonitoringSystem
impl Unpin for MonitoringSystem
impl UnsafeUnpin for MonitoringSystem
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