pub struct SystemConfig {
pub interval_secs: u64,
pub pid: Option<u32>,
pub comm: Option<String>,
pub session_id: Option<u32>,
pub include_children: bool,
pub cpu_threshold: Option<f64>,
pub memory_threshold: Option<u64>,
}Expand description
Configuration for system resource monitoring
Fields§
§interval_secs: u64Monitoring interval in seconds (default: 10)
pid: Option<u32>Monitor specific PID (None = monitor all)
comm: Option<String>Process name to monitor (None = monitor all)
session_id: Option<u32>Session ID to monitor (None = monitor by pid/comm/system-wide)
include_children: boolInclude child processes in aggregation
cpu_threshold: Option<f64>CPU usage threshold for alerts (%)
memory_threshold: Option<u64>Memory usage threshold for alerts (MB)
Trait Implementations§
Source§impl Clone for SystemConfig
impl Clone for SystemConfig
Source§fn clone(&self) -> SystemConfig
fn clone(&self) -> SystemConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemConfig
impl Debug for SystemConfig
Auto Trait Implementations§
impl Freeze for SystemConfig
impl RefUnwindSafe for SystemConfig
impl Send for SystemConfig
impl Sync for SystemConfig
impl Unpin for SystemConfig
impl UnsafeUnpin for SystemConfig
impl UnwindSafe for SystemConfig
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