pub struct MetricQuery {
pub time_aggregation: TimeAgg,
pub window: Window,
pub expr: MetricExpr,
pub condition: Condition,
}Expand description
A metric monitor query: time_agg(window): expr op threshold.
Fields§
§time_aggregation: TimeAggEvaluation time aggregation (avg, sum, min, max, count).
window: WindowThe evaluation window (last_5m, last_1d, …).
expr: MetricExprThe recursive metric expression being evaluated.
condition: ConditionThe alerting condition (operator + thresholds).
Trait Implementations§
Source§impl Clone for MetricQuery
impl Clone for MetricQuery
Source§fn clone(&self) -> MetricQuery
fn clone(&self) -> MetricQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricQuery
impl Debug for MetricQuery
Source§impl<'de> Deserialize<'de> for MetricQuery
impl<'de> Deserialize<'de> for MetricQuery
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
Source§impl PartialEq for MetricQuery
impl PartialEq for MetricQuery
Source§fn eq(&self, other: &MetricQuery) -> bool
fn eq(&self, other: &MetricQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricQuery
impl Serialize for MetricQuery
impl StructuralPartialEq for MetricQuery
Auto Trait Implementations§
impl Freeze for MetricQuery
impl RefUnwindSafe for MetricQuery
impl Send for MetricQuery
impl Sync for MetricQuery
impl Unpin for MetricQuery
impl UnsafeUnpin for MetricQuery
impl UnwindSafe for MetricQuery
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