fix(opentsdb): fmt
This commit is contained in:
@@ -1,23 +1,23 @@
|
|||||||
package opentsdb
|
package opentsdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
|
||||||
"context"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"net/url"
|
|
||||||
"net/http"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
"net/url"
|
||||||
//"net/http/httputil"
|
//"net/http/httputil"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"gopkg.in/guregu/null.v3"
|
"gopkg.in/guregu/null.v3"
|
||||||
|
|
||||||
"github.com/grafana/grafana/pkg/log"
|
"github.com/grafana/grafana/pkg/log"
|
||||||
"github.com/grafana/grafana/pkg/tsdb"
|
|
||||||
"github.com/grafana/grafana/pkg/setting"
|
"github.com/grafana/grafana/pkg/setting"
|
||||||
|
"github.com/grafana/grafana/pkg/tsdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OpenTsdbExecutor struct {
|
type OpenTsdbExecutor struct {
|
||||||
@@ -47,7 +47,7 @@ func (e *OpenTsdbExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice,
|
|||||||
tsdbQuery.End = queryContext.TimeRange.GetToAsMsEpoch()
|
tsdbQuery.End = queryContext.TimeRange.GetToAsMsEpoch()
|
||||||
|
|
||||||
for _, query := range queries {
|
for _, query := range queries {
|
||||||
tsdbQuery.Queries = []OpenTsdbMetric {
|
tsdbQuery.Queries = []OpenTsdbMetric{
|
||||||
OpenTsdbMetric{
|
OpenTsdbMetric{
|
||||||
Metric: query.Model.Get("metric").MustString(),
|
Metric: query.Model.Get("metric").MustString(),
|
||||||
Aggregator: query.Model.Get("aggregator").MustString(),
|
Aggregator: query.Model.Get("aggregator").MustString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user