pub struct AlertRule {
pub id: String,
pub metric_name: String,
pub condition: AlertCondition,
pub threshold: f64,
pub severity: AlertSeverity,
pub enabled: bool,
pub processor_types: Vec<ProcessorType>,
pub cooldown_seconds: u64,
pub description: String,
pub auto_resolve: bool,
pub resolution_threshold: Option<f64>,
}
Expand description
Alert rule configuration
Fields§
§id: String
§metric_name: String
§condition: AlertCondition
§threshold: f64
§severity: AlertSeverity
§enabled: bool
§processor_types: Vec<ProcessorType>
§cooldown_seconds: u64
§description: String
§auto_resolve: bool
§resolution_threshold: Option<f64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlertRule
impl RefUnwindSafe for AlertRule
impl Send for AlertRule
impl Sync for AlertRule
impl Unpin for AlertRule
impl UnwindSafe for AlertRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more