Improved performance of metric filtering and building history query.

This commit is contained in:
Alexander Zobnin
2016-03-17 22:36:22 +03:00
parent 17e8529127
commit fbe7480c07
4 changed files with 149 additions and 66 deletions

View File

@@ -127,7 +127,8 @@ function ZabbixAPIService($q, alertSrv, zabbixAPICoreService) {
var params = {
output: ['name', 'host'],
sortfield: 'name',
selectGroups: []
selectGroups: [],
selectApplications: ['applicationid']
};
return this.request('host.get', params);
@@ -140,7 +141,8 @@ function ZabbixAPIService($q, alertSrv, zabbixAPICoreService) {
// Hack for supporting different apis (2.2 vs 2.4 vs 3.0)
selectHost: [],
selectHosts: []
selectHosts: [],
selectItems: ['itemid']
};
return this.request('application.get', params);
@@ -170,9 +172,12 @@ function ZabbixAPIService($q, alertSrv, zabbixAPICoreService) {
var params = {
output: ['name', 'host'],
sortfield: 'name',
selectGroups: [],
selectGroups: ['groupid'],
selectApplications: ['applicationid'],
selectItems: [
'name', 'key_',
'itemid',
'name',
'key_',
'value_type',
'hostid',
'status',