Fix alerting query error when query type has numeric type, fixes #1342
This commit is contained in:
@@ -3,10 +3,11 @@ package datasource
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/alexanderzobnin/grafana-zabbix/pkg/timeseries"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/alexanderzobnin/grafana-zabbix/pkg/timeseries"
|
||||
|
||||
"github.com/bitly/go-simplejson"
|
||||
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
||||
"github.com/grafana/grafana-plugin-sdk-go/backend/log"
|
||||
@@ -46,7 +47,7 @@ type ZabbixAPIResourceResponse struct {
|
||||
type QueryModel struct {
|
||||
// Deprecated `mode` field, use QueryType instead
|
||||
Mode int64 `json:"mode"`
|
||||
QueryType string `json:"queryType"`
|
||||
QueryType string `json:"-"`
|
||||
|
||||
Group QueryFilter `json:"group"`
|
||||
Host QueryFilter `json:"host"`
|
||||
|
||||
Reference in New Issue
Block a user