Struct prometheus_http_query::response::AlertingRule
source · pub struct AlertingRule { /* private fields */ }
Expand description
An alerting rule.
Implementations§
source§impl AlertingRule
impl AlertingRule
sourcepub fn annotations(&self) -> &HashMap<String, String>
pub fn annotations(&self) -> &HashMap<String, String>
Get a set of annotations set for this rule.
sourcepub fn duration(&self) -> f64
pub fn duration(&self) -> f64
Get the duration that Prometheus waits for before firing for this rule.
sourcepub fn last_evaluation(&self) -> &OffsetDateTime
pub fn last_evaluation(&self) -> &OffsetDateTime
Get the time when the rule was last evaluated.
sourcepub fn evaluation_time(&self) -> f64
pub fn evaluation_time(&self) -> f64
Get duration in seconds that Prometheus took to evaluate this rule.
sourcepub fn keep_firing_for(&self) -> f64
pub fn keep_firing_for(&self) -> f64
Get the duration that Prometheus waits before clearing an alert that has previously been firing.
Trait Implementations§
source§impl Clone for AlertingRule
impl Clone for AlertingRule
source§fn clone(&self) -> AlertingRule
fn clone(&self) -> AlertingRule
Returns a copy 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 AlertingRule
impl Debug for AlertingRule
source§impl<'de> Deserialize<'de> for AlertingRule
impl<'de> Deserialize<'de> for AlertingRule
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 AlertingRule
impl RefUnwindSafe for AlertingRule
impl Send for AlertingRule
impl Sync for AlertingRule
impl Unpin for AlertingRule
impl UnwindSafe for AlertingRule
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