pub struct AlertmanagerConfig {
pub global: Option<AlertmanagerGlobal>,
pub route: AlertmanagerRoute,
pub receivers: Vec<AlertmanagerReceiver>,
pub inhibit_rules: Vec<AlertmanagerInhibitRule>,
pub templates: Vec<String>,
pub time_intervals: Vec<Value>,
pub mute_time_intervals: Vec<Value>,
}Fields§
§global: Option<AlertmanagerGlobal>§route: AlertmanagerRoute§receivers: Vec<AlertmanagerReceiver>§inhibit_rules: Vec<AlertmanagerInhibitRule>§templates: Vec<String>§time_intervals: Vec<Value>§mute_time_intervals: Vec<Value>Implementations§
Source§impl AlertmanagerConfig
impl AlertmanagerConfig
pub fn from_value(data: Value) -> Result<Self, String>
Trait Implementations§
Source§impl Clone for AlertmanagerConfig
impl Clone for AlertmanagerConfig
Source§fn clone(&self) -> AlertmanagerConfig
fn clone(&self) -> AlertmanagerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConfigValidator for AlertmanagerConfig
impl ConfigValidator for AlertmanagerConfig
Source§fn validate_structure(&self) -> Vec<Diagnostic>
fn validate_structure(&self) -> Vec<Diagnostic>
Structural validation — errors mean the config is invalid. Read more
Source§fn validate_semantics(&self) -> Vec<Diagnostic>
fn validate_semantics(&self) -> Vec<Diagnostic>
Semantic validation — best-practice warnings, hints, and info. Read more
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Full validation: structure + semantics combined.
Source§impl Debug for AlertmanagerConfig
impl Debug for AlertmanagerConfig
Source§impl<'de> Deserialize<'de> for AlertmanagerConfig
impl<'de> Deserialize<'de> for AlertmanagerConfig
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
Auto Trait Implementations§
impl Freeze for AlertmanagerConfig
impl RefUnwindSafe for AlertmanagerConfig
impl Send for AlertmanagerConfig
impl Sync for AlertmanagerConfig
impl Unpin for AlertmanagerConfig
impl UnsafeUnpin for AlertmanagerConfig
impl UnwindSafe for AlertmanagerConfig
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