pub struct AlertQueryInput {
pub metric: String,
pub agg: AlertQueryInputAgg,
pub match_: Option<Vec<String>>,
pub by: Option<Vec<String>>,
}Fields§
§metric: String§agg: AlertQueryInputAgg§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.
Implementations§
Source§impl AlertQueryInput
impl AlertQueryInput
Sourcepub fn new(metric: String, agg: AlertQueryInputAgg) -> Self
pub fn new(metric: String, agg: AlertQueryInputAgg) -> Self
Set the required fields; optional fields start omitted.
Trait Implementations§
Source§impl Clone for AlertQueryInput
impl Clone for AlertQueryInput
Source§impl Debug for AlertQueryInput
impl Debug for AlertQueryInput
Source§impl<'de> Deserialize<'de> for AlertQueryInput
impl<'de> Deserialize<'de> for AlertQueryInput
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 AlertQueryInput
impl RefUnwindSafe for AlertQueryInput
impl Send for AlertQueryInput
impl Sync for AlertQueryInput
impl Unpin for AlertQueryInput
impl UnsafeUnpin for AlertQueryInput
impl UnwindSafe for AlertQueryInput
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