mysql-connector: aggregate values by time interval on server side

This commit is contained in:
Alexander Zobnin
2017-07-21 22:22:16 +03:00
parent 32e8806158
commit 0369fb83a5
8 changed files with 21 additions and 11 deletions

View File

@@ -230,7 +230,7 @@ var ZabbixAPIDatasource = function () {
} else {
// Use history
if (_this2.enableDirectDBConnection) {
getHistoryPromise = _this2.zabbix.getHistory(items, timeFrom, timeTo).then(function (history) {
getHistoryPromise = _this2.zabbix.getHistory(items, timeFrom, timeTo, options.intervalMs).then(function (history) {
return _this2.zabbix.dbConnector.handleHistory(history, items);
});
} else {