Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElasticsearchExecutor ¶
func NewElasticsearchExecutor(dsInfo *models.DataSource) (tsdb.TsdbQueryEndpoint, error)
NewElasticsearchExecutor creates a new elasticsearch executor
Types ¶
type BucketAgg ¶
type BucketAgg struct {
Field string `json:"field"`
ID string `json:"id"`
Settings *simplejson.Json `json:"settings"`
Type string `jsons:"type"`
}
BucketAgg represents a bucket aggregation of the time series query model of the datasource
type ElasticsearchExecutor ¶
type ElasticsearchExecutor struct{}
ElasticsearchExecutor represents a handler for handling elasticsearch datasource request
type MetricAgg ¶
type MetricAgg struct {
Field string `json:"field"`
Hide bool `json:"hide"`
ID string `json:"id"`
PipelineAggregate string `json:"pipelineAgg"`
Settings *simplejson.Json `json:"settings"`
Meta *simplejson.Json `json:"meta"`
Type string `json:"type"`
}
MetricAgg represents a metric aggregation of the time series query model of the datasource
type Query ¶
type Query struct {
TimeField string `json:"timeField"`
RawQuery string `json:"query"`
BucketAggs []*BucketAgg `json:"bucketAggs"`
Metrics []*MetricAgg `json:"metrics"`
Alias string `json:"alias"`
Interval string
RefID string
}
Query represents the time series query model of the datasource
Source Files
¶
- elasticsearch.go
- models.go
- response_parser.go
- time_series_query.go
Click to show internal directories.
Click to hide internal directories.