Improved performance of metric filtering and building history query.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user