Documentation ¶
Index ¶
- func AlphabeticallyByPart(metrics []*types.MetricData, part int) sort.Interface
- func ByPart(metrics []*types.MetricData, part int) byPartBase
- func EvalExpr(ctx context.Context, e parser.Expr, from, until int64, ...) ([]*types.MetricData, error)
- func FetchAndEvalExp(ctx context.Context, e parser.Expr, from, until int64, ...) ([]*types.MetricData, error)
- func RewriteExpr(ctx context.Context, e parser.Expr, from, until int64, ...) (bool, []string, error)
- func SortMetrics(metrics []*types.MetricData, mfetch parser.MetricRequest)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlphabeticallyByPart ¶
func AlphabeticallyByPart(metrics []*types.MetricData, part int) sort.Interface
AlphabeticallyByPart returns a byPartAlphabetical that will sort 'metrics' alphabetically by 'part'.
func ByPart ¶
func ByPart(metrics []*types.MetricData, part int) byPartBase
ByPart returns a byPartBase suitable for sorting 'metrics' by 'part'.
func EvalExpr ¶
func EvalExpr(ctx context.Context, e parser.Expr, from, until int64, values map[parser.MetricRequest][]*types.MetricData) ([]*types.MetricData, error)
Eval is the main expression evaluator
func FetchAndEvalExp ¶ added in v0.13.0
func FetchAndEvalExp(ctx context.Context, e parser.Expr, from, until int64, values map[parser.MetricRequest][]*types.MetricData) ([]*types.MetricData, error)
FetchAndEvalExp fetch data and evalualtes expressions
func RewriteExpr ¶
func RewriteExpr(ctx context.Context, e parser.Expr, from, until int64, values map[parser.MetricRequest][]*types.MetricData) (bool, []string, error)
RewriteExpr expands targets that use applyByNode into a new list of targets. eg: applyByNode(foo*, 1, "%") -> (true, ["foo1", "foo2"], nil) sumSeries(foo) -> (false, nil, nil) Assumes that applyByNode only appears as the outermost function.
func SortMetrics ¶
func SortMetrics(metrics []*types.MetricData, mfetch parser.MetricRequest)
SortMetrics sort metric data alphabetically.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.