Struct prometheus_http_query::response::RecordingRule
source · pub struct RecordingRule { /* private fields */ }
Expand description
A recording rule.
Implementations§
source§impl RecordingRule
impl RecordingRule
sourcepub fn labels(&self) -> &Option<HashMap<String, String>>
pub fn labels(&self) -> &Option<HashMap<String, String>>
Get a set of labels defined 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.
Trait Implementations§
source§impl Clone for RecordingRule
impl Clone for RecordingRule
source§fn clone(&self) -> RecordingRule
fn clone(&self) -> RecordingRule
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 RecordingRule
impl Debug for RecordingRule
source§impl<'de> Deserialize<'de> for RecordingRule
impl<'de> Deserialize<'de> for RecordingRule
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 RecordingRule
impl RefUnwindSafe for RecordingRule
impl Send for RecordingRule
impl Sync for RecordingRule
impl Unpin for RecordingRule
impl UnwindSafe for RecordingRule
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