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