Elasticsearch: Fix using of individual query time ranges when querying (#84201)

* WIP - proof of concept

* Update pkg/tsdb/elasticsearch/client/client.go

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* update and add test

* lint

* Fix lint

* Bring back logging when creating client

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
This commit is contained in:
Ivana Huckova
2024-03-13 12:49:35 +02:00
committed by GitHub
co-authored by Sven Grossmann
parent 8ed4d5127f
commit 2a1a5145d0
10 changed files with 151 additions and 31 deletions
+3
View File
@@ -3,6 +3,8 @@ package es
import (
"encoding/json"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
)
// SearchRequest represents a search request
@@ -14,6 +16,7 @@ type SearchRequest struct {
Query *Query
Aggs AggArray
CustomProps map[string]interface{}
TimeRange backend.TimeRange
}
// MarshalJSON returns the JSON encoding of the request.