monitoring: Add restrictable filter columns to the service group summary

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-03 12:53:56 +02:00
parent a8b925e2ec
commit 6588c73b4e
1 changed files with 15 additions and 9 deletions

View File

@ -3,6 +3,9 @@
namespace Icinga\Module\Monitoring\DataView;
/**
* Data view for service group summaries
*/
class Servicegroupsummary extends DataView
{
/**
@ -14,23 +17,22 @@ class Servicegroupsummary extends DataView
'servicegroup_alias',
'servicegroup_name',
'services_critical_handled',
'services_critical_last_state_change_handled',
'services_critical_last_state_change_unhandled',
'services_critical_handled_last_state_change',
'services_critical_unhandled',
'services_critical_unhandled_last_state_change',
'services_ok',
'services_ok_last_state_change',
'services_pending',
'services_pending_last_state_change',
'services_severity',
'services_total',
'services_unknown_handled',
'services_unknown_last_state_change_handled',
'services_unknown_last_state_change_unhandled',
'services_unknown_handled_last_state_change',
'services_unknown_unhandled',
'services_unknown_unhandled_last_state_change',
'services_warning_handled',
'services_warning_last_state_change_handled',
'services_warning_last_state_change_unhandled',
'services_warning_unhandled'
'services_warning_handled_last_state_change',
'services_warning_unhandled',
'services_warning_unhandled_last_state_change'
);
}
@ -39,7 +41,11 @@ class Servicegroupsummary extends DataView
*/
public function getFilterColumns()
{
return array('servicegroup');
return array(
'services_severity',
'host', 'hostgroup', 'hostgroup_alias', 'hostgroup_name',
'service', 'servicegroup', 'servicegroup_alias', 'servicegroup_name'
);
}
/**