Implement timeShift

This commit is contained in:
Alexander Zobnin
2021-05-27 14:16:10 +03:00
parent 9a63a1f70f
commit 43e9527a0f
3 changed files with 96 additions and 0 deletions

View File

@@ -68,6 +68,11 @@ func (ds *ZabbixDatasourceInstance) queryNumericDataForItems(ctx context.Context
consolidateBy = valueType
}
err := applyFunctionsPre(query, items)
if err != nil {
return nil, err
}
history, err := ds.getHistotyOrTrend(ctx, query, items, valueType)
if err != nil {
return nil, err