Versions in this module Expand all Collapse all v1 v1.6.65 Sep 23, 2024 v1.6.64 Sep 13, 2024 v1.6.4 Sep 13, 2024 Changes in this version + const AND + const EQ + const FUNCTION_AAVG + const FUNCTION_ANY + const FUNCTION_APDEX + const FUNCTION_AVG + const FUNCTION_COUNT + const FUNCTION_COUNTDISTINCT + const FUNCTION_COUNTER_AVG + const FUNCTION_DELAY_AVG + const FUNCTION_DERIVATIVE + const FUNCTION_DIV + const FUNCTION_DIV_TYPE_0DIVIDER_AS_0 + const FUNCTION_DIV_TYPE_0DIVIDER_AS_NULL + const FUNCTION_DIV_TYPE_DEFAULT + const FUNCTION_DIV_TYPE_FILL_MINIMUM + const FUNCTION_GROUP_ARRAY + const FUNCTION_HISTOGRAM + const FUNCTION_LAST + const FUNCTION_MAX + const FUNCTION_MIN + const FUNCTION_MINUS + const FUNCTION_MULTIPLY + const FUNCTION_PCTL + const FUNCTION_PCTL_EXACT + const FUNCTION_PERCENTAG + const FUNCTION_PERSECOND + const FUNCTION_PLUS + const FUNCTION_RSPREAD + const FUNCTION_SPREAD + const FUNCTION_STDDEV + const FUNCTION_SUM + const FUNCTION_TOPK + const FUNCTION_UNIQ + const FUNCTION_UNIQ_EXACT + const GROUP_FLAG_DEFAULT + const GROUP_FLAG_METRICS_INNTER + const GROUP_FLAG_METRICS_OUTER + const GT + const GTE + const IN + const LIKE + const LT + const LTE + const METRICS_FLAG_INNER + const METRICS_FLAG_OUTER + const METRICS_FLAG_TOP + const MODEL_METRICS_LEVEL_FLAG_LAYERED + const MODEL_METRICS_LEVEL_FLAG_UNLAY + const NEQ + const NIN + const NLIKE + const NODE_FLAG_METRICS + const NODE_FLAG_METRICS_INNER + const NODE_FLAG_METRICS_OUTER + const NODE_FLAG_METRICS_TOP + const NOT + const NREGEXP + const OPERATOER_UNKNOWN + const OR + const REGEXP + var FUNC_NAME_MAP map[string]string = map[string]string + var MATH_FUNCTIONS = []string + func FormatField(field string) string + type ApdexFunction struct + func (f *ApdexFunction) GetWiths() []Node + func (f *ApdexFunction) Init() + func (f *ApdexFunction) WriteTo(buf *bytes.Buffer) + type BinaryExpr struct + Left Node + Op *Operator + Right Node + func (n *BinaryExpr) ToString() string + func (n *BinaryExpr) WriteTo(buf *bytes.Buffer) + type CounterAvgFunction struct + func (f *CounterAvgFunction) WriteTo(buf *bytes.Buffer) + type DefaultFunction struct + Alias string + Args []string + Condition string + DerivativeArgs []string + Fields []Node + FillNullAsZero bool + Flag int + IgnoreZero bool + IsGroupArray bool + Math string + Name string + Nest bool + Time *Time + Withs []Node + func (f *DefaultFunction) GetDefaultAlias(inner bool) string + func (f *DefaultFunction) GetFields() []Node + func (f *DefaultFunction) GetFlag() int + func (f *DefaultFunction) GetName() string + func (f *DefaultFunction) GetWiths() []Node + func (f *DefaultFunction) Init() + func (f *DefaultFunction) SetAlias(alias string, inner bool) string + func (f *DefaultFunction) SetArgs(args []string) + func (f *DefaultFunction) SetCondition(condition string) + func (f *DefaultFunction) SetFields(fields []Node) + func (f *DefaultFunction) SetFillNullAsZero(fillNullAsZero bool) + func (f *DefaultFunction) SetFlag(flag int) + func (f *DefaultFunction) SetIgnoreZero(ignoreZero bool) + func (f *DefaultFunction) SetIsGroupArray(isGroupArray bool) + func (f *DefaultFunction) SetMath(math string) + func (f *DefaultFunction) SetTime(time *Time) + func (f *DefaultFunction) ToString() string + func (f *DefaultFunction) WriteTo(buf *bytes.Buffer) + type DelayAvgFunction struct + func (f *DelayAvgFunction) GetWiths() []Node + func (f *DelayAvgFunction) Init() + func (f *DelayAvgFunction) WriteTo(buf *bytes.Buffer) + type DivFunction struct + DivType int + func (f *DivFunction) GetWiths() []Node + func (f *DivFunction) WriteTo(buf *bytes.Buffer) + type Expr struct + Value string + func (n *Expr) ToString() string + func (n *Expr) WriteTo(buf *bytes.Buffer) + type Field struct + Value string + Withs []Node + func (f *Field) GetDefaultAlias(inner bool) string + func (f *Field) GetWiths() []Node + func (f *Field) ToString() string + func (f *Field) WriteTo(buf *bytes.Buffer) + type Filters struct + Expr Node + Withs []Node + func (s *Filters) Append(f *Filters) + func (s *Filters) GetWiths() []Node + func (s *Filters) IsNull() bool + func (s *Filters) ToString() string + func (s *Filters) WriteTo(buf *bytes.Buffer) + type Function interface + GetDefaultAlias func(bool) string + GetFields func() []Node + GetFlag func() int + GetName func() string + Init func() + SetAlias func(string, bool) string + SetArgs func([]string) + SetCondition func(string) + SetFields func([]Node) + SetFillNullAsZero func(bool) + SetFlag func(int) + SetIgnoreZero func(bool) + SetIsGroupArray func(bool) + SetMath func(string) + SetTime func(*Time) + func GetFunc(name string) Function + type Group struct + Alias string + Flag int + Value string + Withs []Node + func (n *Group) GetWiths() []Node + func (n *Group) ToString() string + func (n *Group) WriteTo(buf *bytes.Buffer) + type Groups struct + func (s *Groups) Append(g *Group) + func (s *Groups) GetWiths() []Node + func (s *Groups) IsNull() bool + func (s *Groups) ToString() string + func (s *Groups) WriteTo(buf *bytes.Buffer) + type HistogramFunction struct + func (f *HistogramFunction) WriteTo(buf *bytes.Buffer) + type Limit struct + Limit string + Offset string + func (n *Limit) ToString() string + func (n *Limit) WriteTo(buf *bytes.Buffer) + type MinFunction struct + func (f *MinFunction) GetWiths() []Node + func (f *MinFunction) WriteTo(buf *bytes.Buffer) + type Model struct + Callbacks map[string]func(*common.Result) error + DB string + DerivativeGroupBy []string + Filters *Filters + From *Tables + Groups *Groups + HasAggFunc bool + Havings *Filters + IsDerivative bool + Limit *Limit + MetricsLevelFlag int + Orders *Orders + Tags *Tags + Time *Time + func NewModel() *Model + func (m *Model) AddCallback(col string, f func(*common.Result) error) + func (m *Model) AddFilter(f *Filters) + func (m *Model) AddGroup(g *Group) + func (m *Model) AddHaving(f *Filters) + func (m *Model) AddTable(value string) + func (m *Model) AddTag(n Node) + type Nested struct + Expr Node + func (n *Nested) ToString() string + func (n *Nested) WriteTo(buf *bytes.Buffer) + type Node interface + GetWiths func() []Node + ToString func() string + WriteTo func(*bytes.Buffer) + type NodeBase struct + func (n *NodeBase) GetWiths() []Node + type NodeSet interface + IsNull func() bool + type NodeSetBase struct + type NonNegativeDerivativeFunction struct + func (f *NonNegativeDerivativeFunction) WriteTo(buf *bytes.Buffer) + type Operator struct + Type int + func GetOperator(op string) (*Operator, int) + func (n *Operator) ToString() string + func (n *Operator) WriteTo(buf *bytes.Buffer) + type Order struct + IsField bool + OrderBy string + SortBy string + func (n *Order) ToString() string + func (n *Order) WriteTo(buf *bytes.Buffer) + type Orders struct + Orders []Node + func (s *Orders) Append(o Node) + func (s *Orders) IsNull() bool + func (s *Orders) ToString() string + func (s *Orders) WriteTo(buf *bytes.Buffer) + type PerSecondFunction struct + func (f *PerSecondFunction) GetWiths() []Node + func (f *PerSecondFunction) Init() + func (f *PerSecondFunction) WriteTo(buf *bytes.Buffer) + type PercentageFunction struct + func (f *PercentageFunction) GetWiths() []Node + func (f *PercentageFunction) Init() + func (f *PercentageFunction) WriteTo(buf *bytes.Buffer) + type RspreadFunction struct + func (f *RspreadFunction) GetWiths() []Node + func (f *RspreadFunction) Init() + func (f *RspreadFunction) WriteTo(buf *bytes.Buffer) + type SpreadFunction struct + func (f *SpreadFunction) GetWiths() []Node + func (f *SpreadFunction) Init() + func (f *SpreadFunction) WriteTo(buf *bytes.Buffer) + type SubView struct + Filters *Filters + From *Tables + Groups *Groups + Havings *Filters + Limit *Limit + NoPreWhere bool + Orders *Orders + Tags *Tags + func (sv *SubView) GetWiths() []Node + func (sv *SubView) ToString() string + func (sv *SubView) WriteTo(buf *bytes.Buffer) + type Table struct + Value string + func (t *Table) ToString() string + func (t *Table) WriteTo(buf *bytes.Buffer) + type Tables struct + func (t *Tables) Append(g Node) + func (t *Tables) IsNull() bool + func (t *Tables) ToString() string + func (t *Tables) WriteTo(buf *bytes.Buffer) + type Tag struct + Alias string + Flag int + Value string + Withs []Node + func (n *Tag) GetWiths() []Node + func (n *Tag) ToString() string + func (n *Tag) WriteTo(buf *bytes.Buffer) + type Tags struct + func (s *Tags) Append(t Node) + func (s *Tags) GetWiths() []Node + func (s *Tags) IsNull() bool + func (s *Tags) ToString() string + func (s *Tags) WriteTo(buf *bytes.Buffer) + type Time struct + Alias string + DatasourceInterval int + Fill string + Interval int + Offset int + TimeEnd int64 + TimeEndOperator string + TimeStart int64 + TimeStartOperator string + WindowSize int + func NewTime() *Time + func (t *Time) AddAlias(alias string) + func (t *Time) AddFill(fill string) + func (t *Time) AddInterval(interval int) + func (t *Time) AddOffset(offset int) + func (t *Time) AddTimeEnd(timeEnd int64) + func (t *Time) AddTimeStart(timeStart int64) + func (t *Time) AddWindowSize(windowSize int) + type UnaryExpr struct + Expr Node + Op *Operator + func (n *UnaryExpr) ToString() string + func (n *UnaryExpr) WriteTo(buf *bytes.Buffer) + type View struct + Model *Model + NoPreWhere bool + SubViewLevels []*SubView + func NewView(m *Model) *View + func (v *View) GetCallbacks() (callbacks map[string]func(*common.Result) error) + func (v *View) ToString() string + type With struct + Alias string + Value string + func (n *With) ToString() string + func (n *With) WriteTo(buf *bytes.Buffer) + type Withs struct + Withs []Node + func (s *Withs) Append(w *With) + func (s *Withs) GetWiths() []Node + func (s *Withs) IsNull() bool + func (s *Withs) ToString() string + func (s *Withs) WriteTo(buf *bytes.Buffer)