pub struct AggregateExpr {
pub function: AggFunction,
pub column_pattern: String,
pub label_key: String,
pub label_pattern: String,
pub group_by: Vec<String>,
}Expand description
An aggregate expression: either
mean(recall) over profile~label (single-key filter form,
emits one aggregate row) or
mean(recall) over k,limit,optimize_for (multi-key grouping
form, emits one aggregate row per distinct value-tuple).
Fields§
§function: AggFunctionAggregation function.
column_pattern: StringColumn name pattern — only gauge columns containing this string
are aggregated; others show - in the aggregate row.
label_key: StringLabel key to filter rows on (e.g., "profile").
Set in the single-key filter form. Empty when
group_by is non-empty (multi-key grouping form).
label_pattern: StringSubstring pattern matched against the label value (e.g., "label").
Set in the single-key filter form. Empty when
group_by is non-empty.
group_by: Vec<String>Multi-key grouping form: when non-empty, rows are
grouped by every distinct tuple of values across these
label keys, and the aggregate emits one row per group.
label_key / label_pattern are empty when this is set.