elastic: remove unused debug-code (#59712)
* elastic: remove unused debug-code * removed unused structs
This commit is contained in:
@@ -2,33 +2,10 @@ package es
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/grafana/grafana/pkg/components/simplejson"
|
||||
"github.com/grafana/grafana/pkg/tsdb/intervalv2"
|
||||
)
|
||||
|
||||
type response struct {
|
||||
httpResponse *http.Response
|
||||
reqInfo *SearchRequestInfo
|
||||
}
|
||||
|
||||
type SearchRequestInfo struct {
|
||||
Method string `json:"method"`
|
||||
Url string `json:"url"`
|
||||
Data string `json:"data"`
|
||||
}
|
||||
|
||||
type SearchResponseInfo struct {
|
||||
Status int `json:"status"`
|
||||
Data *simplejson.Json `json:"data"`
|
||||
}
|
||||
|
||||
type SearchDebugInfo struct {
|
||||
Request *SearchRequestInfo `json:"request"`
|
||||
Response *SearchResponseInfo `json:"response"`
|
||||
}
|
||||
|
||||
// SearchRequest represents a search request
|
||||
type SearchRequest struct {
|
||||
Index string
|
||||
@@ -83,7 +60,6 @@ type MultiSearchRequest struct {
|
||||
type MultiSearchResponse struct {
|
||||
Status int `json:"status,omitempty"`
|
||||
Responses []*SearchResponse `json:"responses"`
|
||||
DebugInfo *SearchDebugInfo `json:"-"`
|
||||
}
|
||||
|
||||
// Query represents a query
|
||||
|
||||
Reference in New Issue
Block a user