Skip to main content

LogAnalysisBackend

Trait LogAnalysisBackend 

Source
pub trait LogAnalysisBackend: Send + Sync {
    // Required method
    fn analyze<'life0, 'life1, 'async_trait>(
        &'life0 self,
        system: bool,
        since: &'life1 str,
        lines: usize,
    ) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Optional backend for read-only log pattern analysis. Reads recent log lines (daemon log, or the OS log when system), groups them into recurring signatures, and returns the deterministic digest. Narration by the reasoner is a separate concern — the capability only returns counts.

Required Methods§

Source

fn analyze<'life0, 'life1, 'async_trait>( &'life0 self, system: bool, since: &'life1 str, lines: usize, ) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§