pub struct WatchConfig {
pub command: String,
pub level: NotifyLevel,
pub cleared: bool,
pub interval: Duration,
pub offline_after: Duration,
pub timeout: Duration,
}Expand description
rigtop --watch: watching every host without a screen and running a
command when alerts appear or clear.
Fields§
§command: StringShell command run for each change (“” runs nothing; changes are still printed and kept in the alert history).
level: NotifyLevelThe least severe alerts the command runs for.
cleared: boolAlso run the command when an alert clears.
interval: DurationTime between samples of each host.
offline_after: DurationA host that sends nothing this long becomes a critical alert.
timeout: DurationTime a run of the command may take before it is killed.
Trait Implementations§
Source§impl Clone for WatchConfig
impl Clone for WatchConfig
Source§impl Debug for WatchConfig
impl Debug for WatchConfig
Source§impl Default for WatchConfig
impl Default for WatchConfig
Source§impl<'de> Deserialize<'de> for WatchConfigwhere
WatchConfig: Default,
impl<'de> Deserialize<'de> for WatchConfigwhere
WatchConfig: 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 WatchConfig
impl PartialEq for WatchConfig
Source§impl Serialize for WatchConfig
impl Serialize for WatchConfig
impl StructuralPartialEq for WatchConfig
Auto Trait Implementations§
impl Freeze for WatchConfig
impl RefUnwindSafe for WatchConfig
impl Send for WatchConfig
impl Sync for WatchConfig
impl Unpin for WatchConfig
impl UnsafeUnpin for WatchConfig
impl UnwindSafe for WatchConfig
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