Skip to content

BinaryExpr🔗

Represents a binary operation expression.

Definition🔗

export interface BinaryExpr {
    type: "binaryExpr";
    op: promql.BinaryOp;
    left: promql.Expr;
    right: promql.Expr;
    // https://prometheus.io/docs/prometheus/latest/querying/operators/#vector-matching-keywords
    matchType?: "on" | "ignore";
    matchLabels?: string[];
    groupModifier?: "left" | "right";
    groupLabels?: string[];
}

See also🔗