Skip to content

BinaryExpr🔗

Represents a binary operation expression.

Definition🔗

class BinaryExpr:
    """
    Represents a binary operation expression.
    """

    type_val: typing.Literal["binaryExpr"]
    op: promql.BinaryOp
    left: promql.Expr
    right: promql.Expr
    # https://prometheus.io/docs/prometheus/latest/querying/operators/#vector-matching-keywords
    match_type: typing.Optional[typing.Literal["on", "ignore"]]
    match_labels: typing.Optional[list[str]]
    group_modifier: typing.Optional[typing.Literal["left", "right"]]
    group_labels: typing.Optional[list[str]]

See also🔗