pub struct SystemRunner { /* private fields */ }Expand description
Runner for collecting system resource metrics (CPU and memory)
Implementations§
Source§impl SystemRunner
impl SystemRunner
Sourcepub fn include_children(self, include: bool) -> Self
pub fn include_children(self, include: bool) -> Self
Include child processes in metrics aggregation
Sourcepub fn cpu_threshold(self, threshold: f64) -> Self
pub fn cpu_threshold(self, threshold: f64) -> Self
Set CPU usage threshold for alerts (%)
Sourcepub fn memory_threshold(self, threshold: u64) -> Self
pub fn memory_threshold(self, threshold: u64) -> Self
Set memory usage threshold for alerts (MB)
Trait Implementations§
Source§impl Default for SystemRunner
impl Default for SystemRunner
Source§impl Runner for SystemRunner
impl Runner for SystemRunner
Source§fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<EventStream, RunnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<EventStream, RunnerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run the data collection and return a stream of events
Source§fn add_analyzer(self, analyzer: Box<dyn Analyzer>) -> Self
fn add_analyzer(self, analyzer: Box<dyn Analyzer>) -> Self
Add an analyzer to this runner’s processing chain
Auto Trait Implementations§
impl !RefUnwindSafe for SystemRunner
impl !UnwindSafe for SystemRunner
impl Freeze for SystemRunner
impl Send for SystemRunner
impl Sync for SystemRunner
impl Unpin for SystemRunner
impl UnsafeUnpin for SystemRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more