pub struct QuerySummary {
pub headline: String,
pub metric: Option<String>,
pub scope: Vec<KeyVal>,
pub group_by: Vec<String>,
pub window: Option<String>,
pub evaluation: Option<String>,
pub condition: Option<String>,
pub raw: String,
}Expand description
A render-ready breakdown of a query for a front-end (labelled chips/rows).
Every field is optional except raw and headline, so a consumer can show
just the chips that apply. raw is always the verbatim query.
Fields§
§headline: StringA short headline, e.g. Anomaly detection on view time.
metric: Option<String>The primary metric name, when there is one.
scope: Vec<KeyVal>Scope filters as key/value chips.
group_by: Vec<String>by {…} grouping tags.
window: Option<String>The evaluation window, humanized.
evaluation: Option<String>The evaluation method (anomaly/outlier/forecast/change phrasing).
condition: Option<String>The alerting condition, e.g. ≥ 1.
raw: StringThe verbatim query string. Always present.
Trait Implementations§
Source§impl Clone for QuerySummary
impl Clone for QuerySummary
Source§fn clone(&self) -> QuerySummary
fn clone(&self) -> QuerySummary
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 QuerySummary
impl Debug for QuerySummary
Source§impl<'de> Deserialize<'de> for QuerySummary
impl<'de> Deserialize<'de> for QuerySummary
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
Source§impl PartialEq for QuerySummary
impl PartialEq for QuerySummary
Source§fn eq(&self, other: &QuerySummary) -> bool
fn eq(&self, other: &QuerySummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuerySummary
impl Serialize for QuerySummary
impl StructuralPartialEq for QuerySummary
Auto Trait Implementations§
impl Freeze for QuerySummary
impl RefUnwindSafe for QuerySummary
impl Send for QuerySummary
impl Sync for QuerySummary
impl Unpin for QuerySummary
impl UnsafeUnpin for QuerySummary
impl UnwindSafe for QuerySummary
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