# Packages
posrange is used to report a position in query strings for error and warning messages.
# Functions
Children returns a list of all child nodes of a syntax tree node.
DocumentedType returns the internal type to the equivalent user facing terminology as defined in the documentation.
EnrichParseError enriches a single or list of parse errors (used for unit tests and promtool).
No description provided by the author
Inspect traverses an AST in depth-first order: It starts by calling f(node, path); node must not be nil.
Lex creates a new scanner for the input string.
No description provided by the author
No description provided by the author
NewParser returns a new parser.
ParseExpr returns the expression parsed from the input.
ParseMetric parses the input into a metric.
ParseMetricSelector parses the provided textual metric selector into a list of label matchers.
ParseMetricSelectors parses a list of provided textual metric selectors into lists of label matchers.
ParseSeriesDesc parses the description of a time series.
No description provided by the author
Tree returns a string of the tree structure of the given node.
Walk traverses an AST in depth-first order: It starts by calling v.Visit(node, path); node must not be nil.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The valid value types.
The valid value types.
The valid value types.
The valid value types.
The valid value types.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
EnableExperimentalFunctions controls whether experimentalFunctions are enabled.
Functions is a list of all functions supported by PromQL, including their types.
ItemTypeStr is the default string representations for common Items.
# Structs
AggregateExpr represents an aggregation operation on a Vector.
BinaryExpr represents a binary expression between two child expressions.
Call represents a function call.
EvalStmt holds an expression and information on the range it should be evaluated on.
Function represents a function of the expression language and is used by function nodes.
Item represents a token or text string returned from the scanner.
Lexer holds the state of the scanner.
MatrixSelector represents a Matrix selection.
NumberLiteral represents a number.
ParenExpr wraps an expression so it cannot be disassembled as a consequence of operator precedence.
ParseErr wraps a parsing error with line and position context.
SequenceValue is an omittable value in a sequence of time series values.
StepInvariantExpr represents a query which evaluates to the same result irrespective of the evaluation time given the raw samples from TSDB remain unchanged.
StringLiteral represents a string.
SubqueryExpr represents a subquery.
UnaryExpr represents a unary operation on another expression.
VectorMatching describes how elements from two Vectors in a binary operation are supposed to be matched.
VectorSelector represents a Vector selection.
# Interfaces
Expr is a generic interface for all expression types.
Node is a generic interface for all nodes in an AST.
No description provided by the author
Statement is a generic interface for all statements.
Value is a generic interface for values resulting from a query evaluation.
Visitor allows visiting a Node and its child nodes.
# Type aliases
Expressions is a list of expression nodes that implements Node.
No description provided by the author
No description provided by the author
No description provided by the author
TestStmt is an internal helper statement that allows execution of an arbitrary function during handling.
ValueType describes a type of a value.
VectorMatchCardinality describes the cardinality relationship of two Vectors in a binary operation.