refactor: use timeRange instead of from, to

This commit is contained in:
Alexander Zobnin
2017-06-08 15:01:36 +03:00
parent 889f33f45f
commit 201c969e13
8 changed files with 100 additions and 30 deletions

View File

@@ -323,7 +323,8 @@ function ZabbixAPIServiceFactory(alertSrv, zabbixAPICoreService) {
return this.request('service.get', params);
}
getSLA(serviceids, timeFrom, timeTo) {
getSLA(serviceids, timeRange) {
let [timeFrom, timeTo] = timeRange;
var params = {
serviceids: serviceids,
intervals: [{