2015-05-19 17:31:17 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
2015-05-19 17:31:17 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
2015-06-03 12:53:56 +02:00
|
|
|
/**
|
|
|
|
* Data view for service group summaries
|
|
|
|
*/
|
2015-05-20 16:16:21 +02:00
|
|
|
class Servicegroupsummary extends DataView
|
2015-05-19 17:31:17 +02:00
|
|
|
{
|
2015-05-20 16:16:21 +02:00
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'servicegroup_alias',
|
|
|
|
'servicegroup_name',
|
|
|
|
'services_critical_handled',
|
|
|
|
'services_critical_unhandled',
|
|
|
|
'services_ok',
|
|
|
|
'services_pending',
|
2018-04-04 10:05:27 +02:00
|
|
|
'services_severity',
|
2015-05-20 16:16:21 +02:00
|
|
|
'services_total',
|
|
|
|
'services_unknown_handled',
|
|
|
|
'services_unknown_unhandled',
|
|
|
|
'services_warning_handled',
|
2017-07-27 15:03:12 +02:00
|
|
|
'services_warning_unhandled'
|
2015-05-20 16:16:21 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-05-19 17:50:07 +02:00
|
|
|
public function getSearchColumns()
|
|
|
|
{
|
2017-11-08 15:40:43 +01:00
|
|
|
return array('servicegroup', 'servicegroup_alias');
|
2015-05-19 17:50:07 +02:00
|
|
|
}
|
2015-05-21 12:41:29 +02:00
|
|
|
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'servicegroup_alias' => array(
|
|
|
|
'order' => self::SORT_ASC
|
2018-04-04 10:05:27 +02:00
|
|
|
),
|
|
|
|
'services_severity' => array(
|
|
|
|
'columns' => array(
|
|
|
|
'services_severity',
|
|
|
|
'servicegroup_alias ASC'
|
|
|
|
),
|
|
|
|
'order' => self::SORT_DESC
|
2015-05-21 12:41:29 +02:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2017-07-27 15:03:12 +02:00
|
|
|
|
|
|
|
public function getStaticFilterColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'instance_name',
|
|
|
|
'services_severity',
|
2019-07-08 18:00:14 +02:00
|
|
|
'host', 'host_alias', 'host_contact', 'host_contactgroup', 'host_display_name', 'host_name',
|
2017-07-27 15:03:12 +02:00
|
|
|
'hostgroup', 'hostgroup_alias', 'hostgroup_name',
|
2019-07-08 18:00:14 +02:00
|
|
|
'service', 'service_contact', 'service_contactgroup', 'service_description', 'service_display_name',
|
2017-07-27 15:03:12 +02:00
|
|
|
'servicegroup'
|
|
|
|
);
|
|
|
|
}
|
2015-05-19 17:31:17 +02:00
|
|
|
}
|