utils

package
v0.56.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasOuterAggregation

func HasOuterAggregation(node *parser.PromQLNode) (aggs []*promParser.AggregateExpr)

func HasOuterBinaryExpr added in v0.8.0

func HasOuterBinaryExpr(node *parser.PromQLNode) *promParser.BinaryExpr

func HasOuterRate added in v0.28.0

func HasOuterRate(node *parser.PromQLNode) (calls []*promParser.Call)

func HasOuterSum added in v0.41.0

func HasOuterSum(node *parser.PromQLNode) (calls []*promParser.AggregateExpr)

func HasVectorSelector added in v0.4.1

func HasVectorSelector(node *parser.PromQLNode) (vs []*promParser.VectorSelector)

func RemoveConditions added in v0.10.1

func RemoveConditions(source string) promParser.Node

RemoveConditions takes a *valid* PromQL expression and removes any condition from it.

Types

type PromQLFragment added in v0.16.1

type PromQLFragment struct {
	Fragment *parser.PromQLNode
	BinExpr  *promParser.BinaryExpr
}

func HasOuterAbsent added in v0.4.1

func HasOuterAbsent(node *parser.PromQLNode) (calls []PromQLFragment)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL