Changing zabbix api wrapper for working with ZabbixAPIService.

This commit is contained in:
Alexander Zobnin
2016-01-23 13:28:24 +03:00
parent 7e0a41ed45
commit 037b4b523a
2 changed files with 42 additions and 11 deletions

View File

@@ -73,6 +73,14 @@ function (angular) {
return this._request(api_url, 'user.login', params, options, null);
};
/**
* Get Zabbix API version
* Matches the version of Zabbix starting from Zabbix 2.0.4
*/
this.getVersion = function(api_url, options) {
return this._request(api_url, 'apiinfo.version', [], options);
};
});
// Define zabbix API exception type