package
2.2.0-rc.1+incompatible
Repository: https://github.com/m3db/prometheus.git
Documentation: pkg.go.dev

# Functions

Inspect traverses an AST in depth-first order: It starts by calling f(node, path); 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, 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
Non-operators.
The valid value types.
The valid value types.
The valid value types.
The valid value types.
The valid value types.

# Variables

LookbackDelta 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.
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.
Point represents a single data point for a given timestamp.
RecordStmt represents an added recording rule.
Result holds the resulting value of an execution or an error if any occurred.
Sample is a single sample belonging to a metric.
Scalar is a data point that's explicitly not associated with a metric.
Series is a stream of data points belonging to a metric.
String represents a string value.
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.
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

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.
Matrix is a slice of Seriess that implements sort.Interface and has a String method.
Pos is the position in a string.
Statements is a list of statement nodes that implements Node.
ValueType describes a type of a value.
Vector is basically only an alias for model.Samples, but the contract is that in a Vector, all Samples have the same timestamp.
VectorMatchCardinality describes the cardinality relationship of two Vectors in a binary operation.