Skip to main content

ObservabilityApi

Trait ObservabilityApi 

Source
pub trait ObservabilityApi: Send + Sync {
    // Required methods
    fn scanner_status<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ScannerStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn storage_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<StorageInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn realtime_metrics<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 MetricsQuery,
    ) -> Pin<Box<dyn Future<Output = Result<MetricsBatch>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Read-only scanner, storage, and metrics Admin API boundary.

Required Methods§

Source

fn scanner_status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ScannerStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn storage_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<StorageInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn realtime_metrics<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 MetricsQuery, ) -> Pin<Box<dyn Future<Output = Result<MetricsBatch>> + 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§