Documentation ¶
Index ¶
- func NewInfluxDBExecutor(datasource *models.DataSource) (tsdb.Executor, error)
- type DefinitionParameters
- type InfluxDBExecutor
- type InfluxDbSelect
- type InfluxdbQueryParser
- type Message
- type Query
- type QueryDefinition
- type QueryPart
- type Response
- type ResponseParser
- type Result
- type Row
- type Select
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInfluxDBExecutor ¶
func NewInfluxDBExecutor(datasource *models.DataSource) (tsdb.Executor, error)
Types ¶
type DefinitionParameters ¶
type InfluxDBExecutor ¶
type InfluxDBExecutor struct { *models.DataSource QueryParser *InfluxdbQueryParser ResponseParser *ResponseParser HttpClient *http.Client }
func (*InfluxDBExecutor) Execute ¶
func (e *InfluxDBExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult
type InfluxDbSelect ¶
type InfluxDbSelect struct {
Type string
}
type InfluxdbQueryParser ¶
type InfluxdbQueryParser struct{}
func (*InfluxdbQueryParser) Parse ¶
func (qp *InfluxdbQueryParser) Parse(model *simplejson.Json, dsInfo *models.DataSource) (*Query, error)
type Query ¶
type QueryDefinition ¶
type QueryDefinition struct { Renderer func(query *Query, queryContext *tsdb.QueryContext, part *QueryPart, innerExpr string) string Params []DefinitionParameters }
func (QueryDefinition) Render ¶
func (r QueryDefinition) Render(query *Query, queryContext *tsdb.QueryContext, part *QueryPart, innerExpr string) string
type QueryPart ¶
type QueryPart struct { Def QueryDefinition Type string Params []string }
type ResponseParser ¶
type ResponseParser struct{}
func (*ResponseParser) Parse ¶
func (rp *ResponseParser) Parse(response *Response, query *Query) *tsdb.QueryResult
Click to show internal directories.
Click to hide internal directories.