Skip to main content

StatusSectionProvider

Trait StatusSectionProvider 

Source
pub trait StatusSectionProvider:
    Send
    + Sync
    + 'static {
    // Required method
    fn write_status(&self, builder: &mut StatusBuilder);
}
Expand description

A provider of status details for the Datadog Agent’s status output.

Each time the Datadog Agent requests status details, the status service writes its built-in main section fields and then calls every registered provider in registration order. Providers write their fields into the main section or into named sections of their own.

The call happens while the status request is being answered, so it SHOULD only read state that is already at hand, such as internal metrics, rather than performing I/O.

Required Methods§

Source

fn write_status(&self, builder: &mut StatusBuilder)

Writes this provider’s status fields into the given builder.

Implementors§