Versions in this module Expand all Collapse all v1 v1.4.1 Nov 28, 2016 v1.4.0 Nov 25, 2016 v1.3.1 Nov 4, 2016 v1.3.0 Nov 1, 2016 Changes in this version + type Queryable interface + Querier func() (local.Querier, error) v1.3.0-beta.0 Oct 20, 2016 v1.2.3 Nov 3, 2016 v1.2.2 Oct 30, 2016 v1.2.1 Oct 10, 2016 v1.2.0 Oct 7, 2016 Changes in this version type Test + func (t *Test) Context() context.Context v1.1.3 Sep 16, 2016 v1.1.2 Sep 8, 2016 v1.1.1 Sep 7, 2016 v1.1.0 Sep 3, 2016 v1.0.2 Aug 24, 2016 v1.0.1 Jul 21, 2016 v1.0.0 Jul 18, 2016 Changes in this version + const LowestPrec + var DefaultEngineOptions = &EngineOptions + var StalenessDelta = 5 * time.Minute + func Inspect(node Node, f func(Node) bool) + func ParseMetric(input string) (m model.Metric, err error) + func ParseMetricSelector(input string) (m metric.LabelMatchers, err error) + func Tree(node Node) string + func Walk(v Visitor, node Node) + type AggregateExpr struct + Expr Expr + Grouping model.LabelNames + KeepCommonLabels bool + Op itemType + Param Expr + Without bool + func (e *AggregateExpr) Type() model.ValueType + func (node *AggregateExpr) String() string + type AlertStmt struct + Annotations model.LabelSet + Duration time.Duration + Expr Expr + Labels model.LabelSet + Name string + func (node *AlertStmt) String() string + type Analyzer struct + End model.Time + Expr Expr + Start model.Time + Storage local.Querier + func (a *Analyzer) Analyze(ctx context.Context) error + func (a *Analyzer) Prepare(ctx context.Context) (local.Preloader, error) + type Benchmark struct + func NewBenchmark(b *testing.B, input string) *Benchmark + func (b *Benchmark) Run() + type BinaryExpr struct + LHS Expr + Op itemType + RHS Expr + ReturnBool bool + VectorMatching *VectorMatching + func (e *BinaryExpr) Type() model.ValueType + func (node *BinaryExpr) String() string + type Call struct + Args Expressions + Func *Function + func (e *Call) Type() model.ValueType + func (node *Call) String() string + type Engine struct + func NewEngine(storage local.Querier, o *EngineOptions) *Engine + func (ng *Engine) NewInstantQuery(qs string, ts model.Time) (Query, error) + func (ng *Engine) NewRangeQuery(qs string, start, end model.Time, interval time.Duration) (Query, error) + func (ng *Engine) Stop() + type EngineOptions struct + MaxConcurrentQueries int + Timeout time.Duration + type ErrQueryCanceled string + func (e ErrQueryCanceled) Error() string + type ErrQueryTimeout string + func (e ErrQueryTimeout) Error() string + type EvalStmt struct + End model.Time + Expr Expr + Interval time.Duration + Start model.Time + func (node *EvalStmt) String() string + type Expr interface + Type func() model.ValueType + func ParseExpr(input string) (Expr, error) + type Expressions []Expr + func (es Expressions) String() (s string) + type Function struct + ArgTypes []model.ValueType + Call func(ev *evaluator, args Expressions) model.Value + Name string + OptionalArgs int + ReturnType model.ValueType + type MatrixSelector struct + LabelMatchers metric.LabelMatchers + Name string + Offset time.Duration + Range time.Duration + func (e *MatrixSelector) Type() model.ValueType + func (node *MatrixSelector) String() string + type Node interface + String func() string + type NumberLiteral struct + Val model.SampleValue + func (e *NumberLiteral) Type() model.ValueType + func (node *NumberLiteral) String() string + type ParenExpr struct + Expr Expr + func (e *ParenExpr) Type() model.ValueType + func (node *ParenExpr) String() string + type ParseErr struct + Err error + Line int + Pos int + func (e *ParseErr) Error() string + type Pos int + type Query interface + Cancel func() + Exec func() *Result + Statement func() Statement + Stats func() *stats.TimerGroup + type RecordStmt struct + Expr Expr + Labels model.LabelSet + Name string + func (node *RecordStmt) String() string + type Result struct + Err error + Value model.Value + func (r *Result) Matrix() (model.Matrix, error) + func (r *Result) Scalar() (*model.Scalar, error) + func (r *Result) String() string + func (r *Result) Vector() (model.Vector, error) + type Statement interface + type Statements []Statement + func ParseStmts(input string) (Statements, error) + func (stmts Statements) String() (s string) + type StringLiteral struct + Val string + func (e *StringLiteral) Type() model.ValueType + func (node *StringLiteral) String() string + type Test struct + func NewTest(t testutil.T, input string) (*Test, error) + func (t *Test) Close() + func (t *Test) QueryEngine() *Engine + func (t *Test) Run() error + func (t *Test) RunAsBenchmark(b *Benchmark) error + func (t *Test) Storage() local.Storage + type UnaryExpr struct + Expr Expr + Op itemType + func (e *UnaryExpr) Type() model.ValueType + func (node *UnaryExpr) String() string + type VectorMatchCardinality int + const CardManyToMany + const CardManyToOne + const CardOneToMany + const CardOneToOne + func (vmc VectorMatchCardinality) String() string + type VectorMatching struct + Card VectorMatchCardinality + Include model.LabelNames + MatchingLabels model.LabelNames + On bool + type VectorSelector struct + LabelMatchers metric.LabelMatchers + Name string + Offset time.Duration + func (e *VectorSelector) Type() model.ValueType + func (node *VectorSelector) String() string + type Visitor interface + Visit func(node Node) (w Visitor) v1.0.0-rc.0 Jul 14, 2016