elasticsearch: refactor and cleanup

Move time series query logic to specific file.
Remove model parser and move to time series query file, adds parser test.
This commit is contained in:
Marcus Efraimsson
2018-05-23 14:36:41 +02:00
parent 1324a67cbd
commit 77400cef08
8 changed files with 421 additions and 309 deletions
@@ -2,9 +2,10 @@ package elasticsearch
import (
"encoding/json"
"testing"
"github.com/grafana/grafana/pkg/tsdb"
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func testElasticsearchResponse(body string, target Query) *tsdb.QueryResult {