Skip to main content

HealthMonitor

Trait HealthMonitor 

Source
pub trait HealthMonitor: Send + Sync {
    // Required methods
    fn check_health<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        deployment_id: &'life1 str,
        metrics: &'life2 SystemMetrics,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<Vec<HealthCheckResult>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn should_rollback<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        deployment_id: &'life1 str,
        status: &'life2 DeploymentStatus,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_health_summary<'life0, 'life1, 'async_trait>(
        &'life0 self,
        deployment_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<HealthStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for health monitoring

Required Methods§

Source

fn check_health<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, deployment_id: &'life1 str, metrics: &'life2 SystemMetrics, ) -> Pin<Box<dyn Future<Output = ActuatorResult<Vec<HealthCheckResult>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Perform health checks

Source

fn should_rollback<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, deployment_id: &'life1 str, status: &'life2 DeploymentStatus, ) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Check if deployment should be rolled back

Source

fn get_health_summary<'life0, 'life1, 'async_trait>( &'life0 self, deployment_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<HealthStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get health status summary

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§