pub struct AlertRuleFilter {
pub category: String,
pub condition: String,
pub value: Value,
}Expand description
Narrows a metric query. value is a string, number, or array of them.
Fields§
§category: StringThe attribute to filter on.
condition: StringThe filter operator, e.g. =, in, regex, exists.
value: ValueThe value(s) to compare against.
Trait Implementations§
Source§impl Clone for AlertRuleFilter
impl Clone for AlertRuleFilter
Source§fn clone(&self) -> AlertRuleFilter
fn clone(&self) -> AlertRuleFilter
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 AlertRuleFilter
impl Debug for AlertRuleFilter
Source§impl<'de> Deserialize<'de> for AlertRuleFilter
impl<'de> Deserialize<'de> for AlertRuleFilter
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 AlertRuleFilter
impl RefUnwindSafe for AlertRuleFilter
impl Send for AlertRuleFilter
impl Sync for AlertRuleFilter
impl Unpin for AlertRuleFilter
impl UnsafeUnpin for AlertRuleFilter
impl UnwindSafe for AlertRuleFilter
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