package
1.8.2
Repository: https://github.com/andrejbranch/prometheus.git
Documentation: pkg.go.dev

# Functions

Inspect traverses an AST in depth-first order: It starts by calling f(node); node must not be nil.
NewEngine returns a new engine.
NewTest returns an initialized empty Test.
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.
ParseStmts parses the input and returns the resulting statements or any occurring error.
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); 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
Non-operators.

# Variables

DefaultEngineOptions are the default engine options.
StalenessDelta determines the time since the last sample after which a time series is considered stale.

# Structs

AggregateExpr represents an aggregation operation on a vector.
AlertStmt represents an added alert rule.
BinaryExpr represents a binary expression between two child expressions.
Call represents a function call.
Engine handles the lifetime of queries from beginning to end.
EngineOptions contains configuration parameters for an Engine.
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.
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.
RecordStmt represents an added recording rule.
Result holds the resulting value of an execution or an error if any occurred.
StringLiteral represents a string.
Test is a sequence of read and write commands that are run against a test storage.
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.
A Query is derived from an a raw query string and can be run against an engine it is associated with.
Queryable allows opening a storage querier.
Statement is a generic interface for all statements.
Visitor allows visiting a Node and its child nodes.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
Expressions is a list of expression nodes that implements Node.
Pos is the position in a string.
Statements is a list of statement nodes that implements Node.
VectorMatchCardinality describes the cardinality relationship of two vectors in a binary operation.