Documentation ¶
Index ¶
- func LabelMatchersToModelMatcher(lMatchers []*labels.Matcher, tagOpts models.TagOptions) (models.Matchers, error)
- func NewAggregationOperator(expr *promql.AggregateExpr) (parser.Params, error)
- func NewBinaryOperator(expr *promql.BinaryExpr, lhs, rhs parser.NodeID) (parser.Params, error)
- func NewFunctionExpr(name string, argValues []interface{}, stringValues []string, hasArgValue bool, ...) (parser.Params, bool, error)
- func NewSelectorFromMatrix(n *promql.MatrixSelector, tagOpts models.TagOptions) (parser.Params, error)
- func NewSelectorFromVector(n *promql.VectorSelector, tagOpts models.TagOptions) (parser.Params, error)
- func Parse(q string, tagOpts models.TagOptions) (parser.Parser, error)
- type ItemType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelMatchersToModelMatcher ¶ added in v0.5.0
func LabelMatchersToModelMatcher( lMatchers []*labels.Matcher, tagOpts models.TagOptions, ) (models.Matchers, error)
LabelMatchersToModelMatcher parses promql matchers to model matchers.
func NewAggregationOperator ¶ added in v0.4.2
func NewAggregationOperator(expr *promql.AggregateExpr) (parser.Params, error)
NewAggregationOperator creates a new aggregation operator based on the type.
func NewBinaryOperator ¶
NewBinaryOperator creates a new binary operator based on the type.
func NewFunctionExpr ¶
func NewFunctionExpr( name string, argValues []interface{}, stringValues []string, hasArgValue bool, tagOptions models.TagOptions, ) (parser.Params, bool, error)
NewFunctionExpr creates a new function expr based on the type.
func NewSelectorFromMatrix ¶
func NewSelectorFromMatrix( n *promql.MatrixSelector, tagOpts models.TagOptions, ) (parser.Params, error)
NewSelectorFromMatrix creates a new fetchop.
func NewSelectorFromVector ¶
func NewSelectorFromVector( n *promql.VectorSelector, tagOpts models.TagOptions, ) (parser.Params, error)
NewSelectorFromVector creates a new fetchop.
Types ¶
Click to show internal directories.
Click to hide internal directories.