Documentation ¶
Index ¶
- Variables
- type AlertKey
- type AlertKeys
- type Computation
- type Computations
- type Entry
- type Expr
- type Lookup
- type Number
- type Result
- type Results
- func Abs(e *state, T miniprofiler.Timer, series *Results) *Results
- func Avg(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Band(e *state, T miniprofiler.Timer, query, duration, period string, num float64) (r *Results, err error)
- func Change(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
- func Count(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
- func Dev(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Diff(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
- func DropNA(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func First(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Forecast_lr(e *state, T miniprofiler.Timer, series *Results, y float64) (r *Results, err error)
- func Last(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Length(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Max(e *state, T miniprofiler.Timer, series *Results) (r *Results, err error)
- func Median(e *state, T miniprofiler.Timer, series *Results) (r *Results, err error)
- func Min(e *state, T miniprofiler.Timer, series *Results) (r *Results, err error)
- func NV(e *state, T miniprofiler.Timer, series *Results, v float64) (results *Results, err error)
- func Percentile(e *state, T miniprofiler.Timer, series *Results, p float64) (r *Results, err error)
- func Query(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
- func Since(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Sum(e *state, T miniprofiler.Timer, series *Results) (*Results, error)
- func Transpose(e *state, T miniprofiler.Timer, d *Results, gp string) (*Results, error)
- func Ungroup(e *state, T miniprofiler.Timer, d *Results) (*Results, error)
- type Scalar
- type Series
- type Union
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownOp = fmt.Errorf("expr: unknown op type")
Functions ¶
This section is empty.
Types ¶
type AlertKey ¶
type AlertKey string
func ParseAlertKey ¶
type Computation ¶
type Computation struct { Text string Value interface{} }
type Computations ¶
type Computations []Computation
type Expr ¶
func (*Expr) Execute ¶
func (e *Expr) Execute(c opentsdb.Context, T miniprofiler.Timer, now time.Time, autods int, unjoinedOk bool, search *search.Search, lookups map[string]*Lookup, squelched func(tags opentsdb.TagSet) bool) (r *Results, queries []opentsdb.Request, err error)
Execute applies a parse expression to the specified OpenTSDB context, and returns one result per group. T may be nil to ignore timings.
func (*Expr) MarshalJSON ¶
type Result ¶
type Result struct { Computations Value Group opentsdb.TagSet }
func (*Result) AddComputation ¶
type Results ¶
type Results struct { Results []*Result // If true, ungrouped joins from this set will be ignored. IgnoreUnjoined bool // If true, ungrouped joins from the other set will be ignored. IgnoreOtherUnjoined bool // If non nil, will set any NaN value to it. NaNValue *float64 }
func Change ¶
func Change(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
func Count ¶
func Count(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
func Diff ¶
func Diff(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
func Forecast_lr ¶
func Percentile ¶
func Query ¶
func Query(e *state, T miniprofiler.Timer, query, sduration, eduration string) (r *Results, err error)
type Union ¶
type Union struct { Computations A, B Value Group opentsdb.TagSet }
func (*Union) ExtendComputations ¶
Click to show internal directories.
Click to hide internal directories.