Status

Trait Status 

Source
pub trait Status:
    Send
    + Sync
    + Debug {
    // Provided methods
    fn healthz<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = (String, StatusCode)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn metrics<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = (String, StatusCode)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Definition of the Status interface. This interface should be implemented by DNS service provider application to give healthz and metrics information

Provided Methods§

Source

fn healthz<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = (String, StatusCode)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return if the service is healthy in general

Source

fn metrics<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = (String, StatusCode)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return metrics data for Prometheus

Implementors§