parser

package
v0.0.0-...-1b5f0b1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

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