pub struct AlertInfo<KV = HashMap<String, String>>{
pub active_at: DateTime<Utc>,
pub annotations: KV,
pub labels: KV,
pub state: AlertStatus,
pub value: String,
}Expand description
Information about a single alert
Fields§
§active_at: DateTime<Utc>When the alert became active
annotations: KVAlert annotations
labels: KVAlert labels
state: AlertStatusCurrent state of the alert
value: StringThe value that triggered the alert
Trait Implementations§
Source§impl<'de, KV> Deserialize<'de> for AlertInfo<KV>
impl<'de, KV> Deserialize<'de> for AlertInfo<KV>
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<KV> Freeze for AlertInfo<KV>where
KV: Freeze,
impl<KV> RefUnwindSafe for AlertInfo<KV>where
KV: RefUnwindSafe,
impl<KV> Send for AlertInfo<KV>where
KV: Send,
impl<KV> Sync for AlertInfo<KV>where
KV: Sync,
impl<KV> Unpin for AlertInfo<KV>where
KV: Unpin,
impl<KV> UnwindSafe for AlertInfo<KV>where
KV: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)