pub struct Alert { /* private fields */ }Expand description
A single alert.
Implementations§
Source§impl Alert
impl Alert
Sourcepub fn active_at(&self) -> &OffsetDateTime
pub fn active_at(&self) -> &OffsetDateTime
Get the time when this alert started firing.
Sourcepub fn annotations(&self) -> &HashMap<String, String>
pub fn annotations(&self) -> &HashMap<String, String>
Get a set of annotations associated with this alert.
Sourcepub fn labels(&self) -> &HashMap<String, String>
pub fn labels(&self) -> &HashMap<String, String>
Get a set of labels associated with this alert.
Sourcepub fn state(&self) -> AlertState
pub fn state(&self) -> AlertState
Get the state of this alert.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alert
impl<'de> Deserialize<'de> for Alert
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 Forget for Alert
impl Freeze for Alert
impl Move for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin for Alertwhere
NonZeroI32Inner: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Alert
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