pub struct SystemHealth { /* private fields */ }Expand description
System health monitoring
Implementations§
Source§impl SystemHealth
impl SystemHealth
Sourcepub fn status(&self) -> HealthStatus
pub fn status(&self) -> HealthStatus
Get current health status
Sourcepub fn set_status(&mut self, status: HealthStatus)
pub fn set_status(&mut self, status: HealthStatus)
Set health status
Sourcepub fn is_check_due(&self) -> bool
pub fn is_check_due(&self) -> bool
Check if health check is due
Sourcepub async fn check_system(&mut self) -> Result<HealthCheck>
pub async fn check_system(&mut self) -> Result<HealthCheck>
Perform system health check
Sourcepub async fn check_agent_pool(
&mut self,
pool: &AgentPool,
) -> Result<HealthCheck>
pub async fn check_agent_pool( &mut self, pool: &AgentPool, ) -> Result<HealthCheck>
Check agent pool health
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemHealth
impl RefUnwindSafe for SystemHealth
impl Send for SystemHealth
impl Sync for SystemHealth
impl Unpin for SystemHealth
impl UnwindSafe for SystemHealth
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