fix SLA queries

This commit is contained in:
Alexander Zobnin
2020-05-20 12:45:30 +03:00
parent dc2d2a4528
commit 552b709740
2 changed files with 6 additions and 7 deletions

View File

@@ -353,6 +353,9 @@ export class ZabbixDatasource {
return this.zabbix.getITServices(itServiceFilter)
.then(itservices => {
if (options.isOldVersion) {
itservices = _.filter(itservices, {'serviceid': target.itservice?.serviceid});
}
return this.zabbix.getSLA(itservices, timeRange, target, options);})
.then(itservicesdp => this.applyDataProcessingFunctions(itservicesdp, target));
}