Skip to content

AggregationExpr🔗

Represents an aggregation.

See https://prometheus.io/docs/prometheus/latest/querying/operators/#aggregation-operators

Definition🔗

export interface AggregationExpr {
    type: "aggregationExpr";
    op: promql.AggregationOp;
    expr: promql.Expr;
    param?: promql.Expr;
    // By drops labels that are not listed in the by clause.
    by: string[];
    // List of labels to remove from the result vector, while all other labels are preserved in the output.
    without: string[];
}

See also🔗