pub struct AlertQuery {
pub metric: String,
pub agg: AlertQueryAgg,
pub match_: Option<Vec<String>>,
pub by: Option<Vec<String>>,
}Fields§
§metric: String§agg: AlertQueryAgg§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.
Trait Implementations§
Source§impl Clone for AlertQuery
impl Clone for AlertQuery
Source§impl Debug for AlertQuery
impl Debug for AlertQuery
Source§impl<'de> Deserialize<'de> for AlertQuery
impl<'de> Deserialize<'de> for AlertQuery
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 AlertQuery
impl RefUnwindSafe for AlertQuery
impl Send for AlertQuery
impl Sync for AlertQuery
impl Unpin for AlertQuery
impl UnsafeUnpin for AlertQuery
impl UnwindSafe for AlertQuery
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