Don't align IT services data
This commit is contained in:
@@ -69,7 +69,8 @@ type ZabbixAPIResourceResponse struct {
|
||||
// QueryModel model
|
||||
type QueryModel struct {
|
||||
// Deprecated `mode` field, use QueryType instead
|
||||
Mode int64 `json:"mode"`
|
||||
Mode int64 `json:"mode"`
|
||||
QueryType string `json:"queryType"`
|
||||
|
||||
Group QueryFilter `json:"group"`
|
||||
Host QueryFilter `json:"host"`
|
||||
@@ -84,7 +85,6 @@ type QueryModel struct {
|
||||
|
||||
// Direct from the gRPC interfaces
|
||||
RefID string `json:"-"`
|
||||
QueryType string `json:"-"`
|
||||
TimeRange backend.TimeRange `json:"-"`
|
||||
MaxDataPoints int64 `json:"-"`
|
||||
Interval time.Duration `json:"-"`
|
||||
|
||||
@@ -108,7 +108,7 @@ func (ds *ZabbixDatasourceInstance) applyDataProcessing(ctx context.Context, que
|
||||
|
||||
// Align time series data if possible
|
||||
useTrend := ds.isUseTrend(query.TimeRange)
|
||||
disableDataAlignment := query.Options.DisableDataAlignment || ds.Settings.DisableDataAlignment
|
||||
disableDataAlignment := query.Options.DisableDataAlignment || ds.Settings.DisableDataAlignment || query.QueryType == MODE_ITSERVICE
|
||||
if !disableDataAlignment {
|
||||
if useTrend {
|
||||
for _, s := range series {
|
||||
|
||||
Reference in New Issue
Block a user