parser

package
v2.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: GPL-3.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileExpression

func CompileExpression(tsQueries []structs.TSDBqueryPayload) (exps []string)

CompileExpression writes an expression given a TSDB query struct

func GetRelativeStart

func GetRelativeStart(end time.Time, s string) (time.Time, gobol.Error)

GetRelativeStart returns a start time based on an end time and a duration string

func ParseExpression

func ParseExpression(exp string, tsdb *structs.TSDBquery) (relative string, err gobol.Error)

ParseExpression parses a timeseries query expression and returns a TSDB query struct with the expression values

Types

This section is empty.

Jump to

Keyboard shortcuts

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