pub struct AlertmanagerPayload {
pub version: Option<String>,
pub status: Option<String>,
pub group_labels: Option<HashMap<String, String>>,
pub common_labels: Option<HashMap<String, String>>,
pub common_annotations: Option<HashMap<String, String>>,
pub alerts: Option<Vec<AlertmanagerAlert>>,
pub external_url: Option<String>,
}Expand description
Prometheus/Alertmanager v4 webhook payload.
See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
Fields§
§version: Option<String>§status: Option<String>§group_labels: Option<HashMap<String, String>>§common_labels: Option<HashMap<String, String>>§common_annotations: Option<HashMap<String, String>>§alerts: Option<Vec<AlertmanagerAlert>>§external_url: Option<String>Trait Implementations§
Source§impl Clone for AlertmanagerPayload
impl Clone for AlertmanagerPayload
Source§fn clone(&self) -> AlertmanagerPayload
fn clone(&self) -> AlertmanagerPayload
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 Debug for AlertmanagerPayload
impl Debug for AlertmanagerPayload
Source§impl<'de> Deserialize<'de> for AlertmanagerPayload
impl<'de> Deserialize<'de> for AlertmanagerPayload
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 AlertmanagerPayload
impl RefUnwindSafe for AlertmanagerPayload
impl Send for AlertmanagerPayload
impl Sync for AlertmanagerPayload
impl Unpin for AlertmanagerPayload
impl UnsafeUnpin for AlertmanagerPayload
impl UnwindSafe for AlertmanagerPayload
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