iss #19 - implements getITService() and getSLA() methods.

This commit is contained in:
Alexander Zobnin
2015-07-24 20:53:50 +03:00
parent 560d476102
commit e6c5dd35bf

View File

@@ -508,6 +508,25 @@ function (angular, _) {
});
};
p.getITService = function(/* optional */ serviceids) {
var params = {
output: 'extend',
serviceids: serviceids
};
return this.performZabbixAPIRequest('service.get', params);
};
p.getSLA = function(serviceids, from, to) {
var params = {
serviceids: serviceids,
intervals: [{
from: from,
to: to
}]
};
return this.performZabbixAPIRequest('service.getsla', params);
};
return ZabbixAPI;
});