pub struct AlertExpression {
pub metric: String,
pub agg: AlertExpressionAgg,
pub match_: Option<Vec<String>>,
pub by: Option<Vec<String>>,
pub denominator: Option<AlertQuery>,
pub scale: f64,
pub unit: Option<String>,
}Fields§
§metric: String§agg: AlertExpressionAgg§match_: Option<Vec<String>>Label matchers (label=value, label!=value, label=~regex, label!~regex). Tenant scope is always applied independently.
by: Option<Vec<String>>Grouping labels; the resulting series are summed to match the console metric card.
denominator: Option<AlertQuery>§scale: f64Multiplier after optional division, e.g. 100 for a percentage or 1/1048576 for MiB/s.
unit: Option<String>Display unit for the scaled threshold and value.
Trait Implementations§
Source§impl Clone for AlertExpression
impl Clone for AlertExpression
Source§impl Debug for AlertExpression
impl Debug for AlertExpression
Source§impl<'de> Deserialize<'de> for AlertExpression
impl<'de> Deserialize<'de> for AlertExpression
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 AlertExpression
impl RefUnwindSafe for AlertExpression
impl Send for AlertExpression
impl Sync for AlertExpression
impl Unpin for AlertExpression
impl UnsafeUnpin for AlertExpression
impl UnwindSafe for AlertExpression
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