mysql-connector: use consolidateBy in SQL queries as agg func

This commit is contained in:
Alexander Zobnin
2017-07-22 20:57:10 +03:00
parent 327aee7ef4
commit 3795ce564e
8 changed files with 48 additions and 12 deletions

View File

@@ -174,7 +174,7 @@ class ZabbixAPIDatasource {
} else {
// Use history
if (this.enableDirectDBConnection) {
getHistoryPromise = this.zabbix.getHistory(items, timeFrom, timeTo, options.intervalMs)
getHistoryPromise = this.zabbix.getHistory(items, timeFrom, timeTo, options)
.then(history => this.zabbix.dbConnector.handleHistory(history, items));
} else {
getHistoryPromise = this.zabbix.getHistory(items, timeFrom, timeTo)