Versions in this module Expand all Collapse all v1 v1.25.5 Mar 19, 2021 v1.25.4 Mar 19, 2021 v1.25.3 Mar 19, 2021 Changes in this version + const ADD + const AT + const AVG + const BLANK + const BOOL + const BOTTOMK + const BY + const COLON + const COMMA + const COMMENT + const COUNT + const COUNT_VALUES + const DIV + const DURATION + const END + const EOF + const EQL + const EQLC + const EQL_REGEX + const ERROR + const GROUP + const GROUP_LEFT + const GROUP_RIGHT + const GTE + const GTR + const IDENTIFIER + const IGNORING + const LAND + const LEFT_BRACE + const LEFT_BRACKET + const LEFT_PAREN + const LOR + const LSS + const LTE + const LUNLESS + const MAX + const METRIC_IDENTIFIER + const MIN + const MOD + const MUL + const NEQ + const NEQ_REGEX + const NUMBER + const OFFSET + const ON + const POW + const QUANTILE + const RIGHT_BRACE + const RIGHT_BRACKET + const RIGHT_PAREN + const SEMICOLON + const SPACE + const START + const START_EXPRESSION + const START_METRIC + const START_METRIC_SELECTOR + const START_SERIES_DESCRIPTION + const STDDEV + const STDVAR + const STRING + const SUB + const SUM + const TIMES + const TOPK + const WITHOUT + var Functions = map[string]*Function + var ItemTypeStr = map[ItemType]string + func DocumentedType(t ValueType) string + func ExtractSelectors(expr Expr) [][]*labels.Matcher + func Inspect(node Node, f inspector) + func MustLabelMatcher(mt labels.MatchType, name, val string) *labels.Matcher + func ParseMetric(input string) (m labels.Labels, err error) + func ParseMetricSelector(input string) (m []*labels.Matcher, err error) + func Tree(node Node) string + func Walk(v Visitor, node Node, path []Node) error + type AggregateExpr struct + Expr Expr + Grouping []string + Op ItemType + Param Expr + PosRange PositionRange + Without bool + func (*AggregateExpr) PromQLExpr() + func (e *AggregateExpr) PositionRange() PositionRange + func (e *AggregateExpr) Type() ValueType + func (node *AggregateExpr) String() string + type BinaryExpr struct + LHS Expr + Op ItemType + RHS Expr + ReturnBool bool + VectorMatching *VectorMatching + func (*BinaryExpr) PromQLExpr() + func (e *BinaryExpr) PositionRange() PositionRange + func (e *BinaryExpr) Type() ValueType + func (node *BinaryExpr) String() string + type Call struct + Args Expressions + Func *Function + PosRange PositionRange + func (*Call) PromQLExpr() + func (e *Call) PositionRange() PositionRange + func (e *Call) Type() ValueType + func (node *Call) String() string + type EvalStmt struct + End time.Time + Expr Expr + Interval time.Duration + Start time.Time + func (*EvalStmt) PromQLStmt() + func (e *EvalStmt) PositionRange() PositionRange + func (node *EvalStmt) String() string + type Expr interface + PromQLExpr func() + Type func() ValueType + func ParseExpr(input string) (expr Expr, err error) + type Expressions []Expr + func (e Expressions) PositionRange() PositionRange + func (es Expressions) String() (s string) + type Function struct + ArgTypes []ValueType + Name string + ReturnType ValueType + Variadic int + func MustGetFunction(name string) *Function + type Item struct + Pos Pos + Typ ItemType + Val string + func (i *Item) PositionRange() PositionRange + func (i Item) String() string + type ItemType int + func (i ItemType) IsAggregator() bool + func (i ItemType) IsAggregatorWithParam() bool + func (i ItemType) IsComparisonOperator() bool + func (i ItemType) IsKeyword() bool + func (i ItemType) IsOperator() bool + func (i ItemType) IsSetOperator() bool + func (i ItemType) String() string + type Lexer struct + func Lex(input string) *Lexer + func (l *Lexer) NextItem(itemp *Item) + type MatrixSelector struct + EndPos Pos + Range time.Duration + VectorSelector Expr + func (*MatrixSelector) PromQLExpr() + func (e *MatrixSelector) PositionRange() PositionRange + func (e *MatrixSelector) Type() ValueType + func (node *MatrixSelector) String() string + type Node interface + PositionRange func() PositionRange + String func() string + func Children(node Node) []Node + type NumberLiteral struct + PosRange PositionRange + Val float64 + func (*NumberLiteral) PromQLExpr() + func (e *NumberLiteral) PositionRange() PositionRange + func (e *NumberLiteral) Type() ValueType + func (node *NumberLiteral) String() string + type ParenExpr struct + Expr Expr + PosRange PositionRange + func (*ParenExpr) PromQLExpr() + func (e *ParenExpr) PositionRange() PositionRange + func (e *ParenExpr) Type() ValueType + func (node *ParenExpr) String() string + type ParseErr struct + Err error + LineOffset int + PositionRange PositionRange + Query string + func (e *ParseErr) Error() string + type ParseErrors []ParseErr + func (errs ParseErrors) Error() string + type Pos int + type PositionRange struct + End Pos + Start Pos + type SequenceValue struct + Omitted bool + Value float64 + func ParseSeriesDesc(input string) (labels labels.Labels, values []SequenceValue, err error) + func (v SequenceValue) String() string + type Statement interface + PromQLStmt func() + type StepInvariantExpr struct + Expr Expr + func (*StepInvariantExpr) PromQLExpr() + func (e *StepInvariantExpr) PositionRange() PositionRange + func (e *StepInvariantExpr) String() string + func (e *StepInvariantExpr) Type() ValueType + type StringLiteral struct + PosRange PositionRange + Val string + func (*StringLiteral) PromQLExpr() + func (e *StringLiteral) PositionRange() PositionRange + func (e *StringLiteral) Type() ValueType + func (node *StringLiteral) String() string + type SubqueryExpr struct + EndPos Pos + Expr Expr + Offset time.Duration + OriginalOffset time.Duration + Range time.Duration + StartOrEnd ItemType + Step time.Duration + Timestamp *int64 + func (*SubqueryExpr) PromQLExpr() + func (e *SubqueryExpr) PositionRange() PositionRange + func (e *SubqueryExpr) Type() ValueType + func (node *SubqueryExpr) String() string + type TestStmt func(context.Context) error + func (TestStmt) PositionRange() PositionRange + func (TestStmt) PromQLStmt() + func (TestStmt) String() string + type UnaryExpr struct + Expr Expr + Op ItemType + StartPos Pos + func (*UnaryExpr) PromQLExpr() + func (e *UnaryExpr) PositionRange() PositionRange + func (e *UnaryExpr) Type() ValueType + func (node *UnaryExpr) String() string + type Value interface + String func() string + Type func() ValueType + type ValueType string + const ValueTypeMatrix + const ValueTypeNone + const ValueTypeScalar + const ValueTypeString + const ValueTypeVector + type VectorMatchCardinality int + const CardManyToMany + const CardManyToOne + const CardOneToMany + const CardOneToOne + func (vmc VectorMatchCardinality) String() string + type VectorMatching struct + Card VectorMatchCardinality + Include []string + MatchingLabels []string + On bool + type VectorSelector struct + LabelMatchers []*labels.Matcher + Name string + Offset time.Duration + OriginalOffset time.Duration + PosRange PositionRange + Series []storage.Series + StartOrEnd ItemType + Timestamp *int64 + UnexpandedSeriesSet storage.SeriesSet + func (*VectorSelector) PromQLExpr() + func (e *VectorSelector) PositionRange() PositionRange + func (e *VectorSelector) Type() ValueType + func (node *VectorSelector) String() string + type Visitor interface + Visit func(node Node, path []Node) (w Visitor, err error)