pub struct AlertConfig {
pub name: String,
pub condition: AlertCondition,
pub threshold: f64,
pub duration_ms: u64,
pub severity: IssueSeverity,
pub enabled: bool,
}Expand description
Configuration for creating monitoring alerts
Defines the conditions, thresholds, and behavior for alerts that trigger when specific monitoring conditions are met.
Fields§
§name: StringHuman-readable name for this alert
condition: AlertConditionCondition that triggers this alert
threshold: f64Threshold value for the condition
duration_ms: u64Duration in milliseconds the condition must persist
severity: IssueSeveritySeverity level of this alert
enabled: boolWhether this alert is currently enabled
Trait Implementations§
Source§impl Clone for AlertConfig
impl Clone for AlertConfig
Source§fn clone(&self) -> AlertConfig
fn clone(&self) -> AlertConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AlertConfig
impl RefUnwindSafe for AlertConfig
impl Send for AlertConfig
impl Sync for AlertConfig
impl Unpin for AlertConfig
impl UnwindSafe for AlertConfig
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