TSDB: add deprecation comments to many tsdb structs (#33281)

This commit is contained in:
Ryan McKinley
2021-04-22 18:03:11 -07:00
committed by GitHub
parent aa5bdff97d
commit 7627b55ef4
44 changed files with 124 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ type Executor struct {
}
// NewExecutor creates a new Executor.
//nolint: staticcheck // plugins.DataPlugin deprecated
func NewExecutor(*models.DataSource) (plugins.DataPlugin, error) {
return &Executor{
intervalCalculator: interval.NewCalculator(),
@@ -23,6 +24,7 @@ func NewExecutor(*models.DataSource) (plugins.DataPlugin, error) {
}
// Query handles an elasticsearch datasource request
//nolint: staticcheck // plugins.DataResponse deprecated
func (e *Executor) DataQuery(ctx context.Context, dsInfo *models.DataSource,
tsdbQuery plugins.DataQuery) (plugins.DataResponse, error) {
if len(tsdbQuery.Queries) == 0 {