Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationExpression ¶
type AnnotationExpression struct { Expression function.Expression Annotation string }
func (*AnnotationExpression) Evaluate ¶
func (expr *AnnotationExpression) Evaluate(context function.EvaluationContext) (function.Value, error)
Evaluate evalutes the underlying expression without memoization, since its child expression should handle memoization itself.
func (*AnnotationExpression) ExpressionDescription ¶
func (expr *AnnotationExpression) ExpressionDescription(mode function.DescriptionMode) string
func (*AnnotationExpression) Literal ¶
func (expr *AnnotationExpression) Literal() interface{}
type Duration ¶
func (Duration) ActualEvaluate ¶
func (Duration) ExpressionDescription ¶
func (expr Duration) ExpressionDescription(mode function.DescriptionMode) string
type FunctionExpression ¶
type FunctionExpression struct { FunctionName string Arguments []function.Expression GroupBy []string GroupByCollapses bool }
func (*FunctionExpression) ActualEvaluate ¶
func (expr *FunctionExpression) ActualEvaluate(context function.EvaluationContext) (function.Value, error)
func (*FunctionExpression) ExpressionDescription ¶
func (expr *FunctionExpression) ExpressionDescription(mode function.DescriptionMode) string
type MetricFetchExpression ¶
func (*MetricFetchExpression) ActualEvaluate ¶
func (expr *MetricFetchExpression) ActualEvaluate(context function.EvaluationContext) (function.Value, error)
func (*MetricFetchExpression) ExpressionDescription ¶
func (expr *MetricFetchExpression) ExpressionDescription(mode function.DescriptionMode) string
type Scalar ¶
type Scalar struct {
Value float64
}
func (Scalar) ActualEvaluate ¶
func (Scalar) ExpressionDescription ¶
func (expr Scalar) ExpressionDescription(mode function.DescriptionMode) string
type String ¶
type String struct {
Value string
}
func (String) ActualEvaluate ¶
func (String) ExpressionDescription ¶
func (expr String) ExpressionDescription(mode function.DescriptionMode) string
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
SyntaxError is raised when the user query is invalid. This can happen for two reasons: * The query does not generate a valid AST. * Invalid input is provided
func (SyntaxError) Error ¶
func (err SyntaxError) Error() string
Click to show internal directories.
Click to hide internal directories.