mysql-connector: aggregate values by time interval on server side
This commit is contained in:
@@ -173,7 +173,7 @@ class ZabbixAPIDatasource {
|
||||
} else {
|
||||
// Use history
|
||||
if (this.enableDirectDBConnection) {
|
||||
getHistoryPromise = this.zabbix.getHistory(items, timeFrom, timeTo)
|
||||
getHistoryPromise = this.zabbix.getHistory(items, timeFrom, timeTo, options.intervalMs)
|
||||
.then(history => this.zabbix.dbConnector.handleHistory(history, items));
|
||||
} else {
|
||||
getHistoryPromise = this.zabbix.getHistory(items, timeFrom, timeTo)
|
||||
|
||||
Reference in New Issue
Block a user