[−][src]Crate prometheus_parser
Structs
Aggregation | A function aggregation clause. |
Function | A function call. |
Group | An expression explicitly grouped in parens |
Label | A label matcher in a selector |
LabelSetOpTuple | |
Matching | An operator matching clause |
MatchingGroup | A matching clause's nested grouping clause |
Operator | A binary operator expression with left- and right-hand sides. |
ReturnValue | A predicted return value from an expression |
Selector | A Selector that retrieves time series data from Prometheus |
Span | A byte-index tuple representing a span of characters in a string |
Subquery | A Subquery which converts an instant vector to a range vector by repeatedly evaluating it at set intervals into the relative past |
UnknownCause |
Enums
AggregationOp | Aggregation operator types, namely "by" and "without" |
Expression | A root expression node. |
LabelOp | Label equality operators |
LabelSetOp | An operation on time series labels that might be performed by a particular (sub-)expression. |
MatchingGroupOp | Matching group clause types ( |
MatchingOp | A matching clause type |
OperatorKind | All legal binary operator types |
PromDuration | A Prometheus duration |
ReturnKind | A predicted return datatype |
Functions
parse_expr | Parses a Prometheus expression into a syntax tree. |
Type Definitions
BExpression | |
Result |