Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFetchExpressions ¶
ExtractFetchExpressions extracts timeseries fetch expressions from the given query
func MustRegisterAliasedFunction ¶
func MustRegisterAliasedFunction(fname string, f interface{})
MustRegisterAliasedFunction registers a function under an alias, issuing a panic if the function cannot be registered
Types ¶
type ArgumentASTNode ¶
type ArgumentASTNode interface {
String() string
}
ArgumentASTNode is an interface to help with printing the AST.
type CallASTNode ¶
type CallASTNode interface { // Name returns the name of the call. Name() string // Arguments describe each argument that the call has, some // arguments can be casted to an Call themselves. Arguments() []ArgumentASTNode }
CallASTNode is an interface to help with printing the AST.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
The Engine for running queries.
type Expression ¶
type Expression interface { CallASTNode // Executes the expression against the given context, and returns the resulting time series data Execute(ctx *common.Context) (ts.SeriesList, error) }
An Expression is a metric query expression
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Function contains a function to invoke along with metadata about the function's argument and return type.
func MustRegisterFunction ¶
func MustRegisterFunction(f interface{}) *Function
MustRegisterFunction registers a function, issuing a panic if the function cannot be registered
func (*Function) WithDefaultParams ¶
WithDefaultParams provides default parameters for functions