pub struct AlertRuleQuery {
pub metric: String,
pub metric_category: Option<String>,
pub time_aggregation: Option<String>,
pub space_aggregation: Option<String>,
pub data_type: Option<String>,
pub step_interval_seconds: Option<u32>,
pub filter: Vec<AlertRuleFilter>,
pub group_by: Vec<AlertRuleGroupBy>,
pub having: Vec<AlertRuleHaving>,
}Expand description
Selects and aggregates a metric to alert on.
Fields§
§metric: StringThe metric name, e.g. stat_consumer_video_bitrate. Required.
metric_category: Option<String>The metric’s category, e.g. bitrate, packet_loss.
time_aggregation: Option<String>Reduces a series over time: latest, sum, avg, min, max, count,
count_distinct, rate, increase, or a percentile p05..p99.
space_aggregation: Option<String>Reduces across series: sum, avg, min, max, count, or p50..p99.
data_type: Option<String>The metric’s value type: float64, int64, or string.
step_interval_seconds: Option<u32>The query step interval, in seconds.
filter: Vec<AlertRuleFilter>Filters narrowing the query.
group_by: Vec<AlertRuleGroupBy>Attributes to group by.
having: Vec<AlertRuleHaving>Post-aggregation filters.
Implementations§
Trait Implementations§
Source§impl Clone for AlertRuleQuery
impl Clone for AlertRuleQuery
Source§fn clone(&self) -> AlertRuleQuery
fn clone(&self) -> AlertRuleQuery
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 AlertRuleQuery
impl Debug for AlertRuleQuery
Source§impl Default for AlertRuleQuery
impl Default for AlertRuleQuery
Source§fn default() -> AlertRuleQuery
fn default() -> AlertRuleQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlertRuleQuery
impl<'de> Deserialize<'de> for AlertRuleQuery
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 AlertRuleQuery
impl RefUnwindSafe for AlertRuleQuery
impl Send for AlertRuleQuery
impl Sync for AlertRuleQuery
impl Unpin for AlertRuleQuery
impl UnsafeUnpin for AlertRuleQuery
impl UnwindSafe for AlertRuleQuery
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