Struct prometheus_http_query::response::Alert
source · 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.
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 Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
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