ProactiveMonitor

Trait ProactiveMonitor 

Source
pub trait ProactiveMonitor: Send + Sync {
    // Required methods
    fn scan<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<DetectedProblem>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn propose_actions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        problem: &'life1 DetectedProblem,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ProactiveAction>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn execute_action<'life0, 'life1, 'async_trait>(
        &'life0 self,
        action: &'life1 ProactiveAction,
    ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn can_auto_approve(&self, action: &ProactiveAction) -> bool;
}
Expand description

Trait for proactive monitoring agents

Required Methods§

Source

fn scan<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<DetectedProblem>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Scan integrations for problems

Source

fn propose_actions<'life0, 'life1, 'async_trait>( &'life0 self, problem: &'life1 DetectedProblem, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProactiveAction>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Propose actions for a detected problem

Source

fn execute_action<'life0, 'life1, 'async_trait>( &'life0 self, action: &'life1 ProactiveAction, ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Execute an approved action

Source

fn can_auto_approve(&self, action: &ProactiveAction) -> bool

Check if an action can be auto-approved

Implementors§