package
2.26.1+incompatible
Repository: https://github.com/universe111/prometheus.git
Documentation: pkg.go.dev

# 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.
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
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.
ParseSeriesDesc parses the description of a time series.
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.

# 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
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

# Variables

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.
PositionRange describes a position in the input string of the parser.
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.
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
Pos is the position in a string.
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.