pub struct AlertsConfig {
pub filesystem_warning_percent: f64,
pub filesystem_critical_percent: f64,
pub cpu_warning_celsius: f32,
pub gpu_warning_celsius: f32,
pub drive_warning_celsius: f32,
}Expand description
Thresholds that turn readings into alerts (overview cards, status dots and notifications). 0 turns an alert off. Applied by the front-end, so remote hosts are judged by the viewer’s settings.
Fields§
§filesystem_warning_percent: f64Filesystem usage (%) for a warning.
filesystem_critical_percent: f64Filesystem usage (%) for a critical alert.
cpu_warning_celsius: f32Hottest CPU reading (°C) for a warning. Desktop Ryzen CPUs run up to 95 °C under full load by design.
gpu_warning_celsius: f32GPU temperature (°C) for a warning.
drive_warning_celsius: f32Drive temperature (°C, from SMART or the NVMe sensor) for a warning.
Trait Implementations§
Source§impl Clone for AlertsConfig
impl Clone for AlertsConfig
Source§impl Debug for AlertsConfig
impl Debug for AlertsConfig
Source§impl Default for AlertsConfig
impl Default for AlertsConfig
Source§impl<'de> Deserialize<'de> for AlertsConfigwhere
AlertsConfig: Default,
impl<'de> Deserialize<'de> for AlertsConfigwhere
AlertsConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AlertsConfig
impl PartialEq for AlertsConfig
Source§impl Serialize for AlertsConfig
impl Serialize for AlertsConfig
impl StructuralPartialEq for AlertsConfig
Auto Trait Implementations§
impl Freeze for AlertsConfig
impl RefUnwindSafe for AlertsConfig
impl Send for AlertsConfig
impl Sync for AlertsConfig
impl Unpin for AlertsConfig
impl UnsafeUnpin for AlertsConfig
impl UnwindSafe for AlertsConfig
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