Handle db connection response on the backend
This commit is contained in:
@@ -3,6 +3,7 @@ package datasource
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/alexanderzobnin/grafana-zabbix/pkg/timeseries"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
@@ -44,6 +45,11 @@ type ZabbixDatasourceSettings struct {
|
||||
DisableReadOnlyUsersAck bool `json:"disableReadOnlyUsersAck"`
|
||||
}
|
||||
|
||||
type DBConnectionPostProcessingRequest struct {
|
||||
Query QueryModel `json:"query"`
|
||||
Series []*timeseries.TimeSeriesData `json:"series"`
|
||||
}
|
||||
|
||||
type ZabbixAPIResourceRequest struct {
|
||||
DatasourceId int64 `json:"datasourceId"`
|
||||
Method string `json:"method"`
|
||||
|
||||
Reference in New Issue
Block a user