Struct prometheus_http_query::response::RuleGroup
source · pub struct RuleGroup { /* private fields */ }
Expand description
A group of rules.
Implementations§
source§impl RuleGroup
impl RuleGroup
sourcepub fn last_evaluation(&self) -> &OffsetDateTime
pub fn last_evaluation(&self) -> &OffsetDateTime
Get the time when the group of rules 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 group of rules.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RuleGroup
impl<'de> Deserialize<'de> for RuleGroup
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 RuleGroup
impl RefUnwindSafe for RuleGroup
impl Send for RuleGroup
impl Sync for RuleGroup
impl Unpin for RuleGroup
impl UnwindSafe for RuleGroup
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