2015-06-03 14:15:09 +02:00
|
|
|
<?php
|
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Data view for host status summaries
|
|
|
|
*/
|
|
|
|
class Hoststatussummary extends DataView
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'hosts_down_handled',
|
|
|
|
'hosts_down_unhandled',
|
|
|
|
'hosts_pending',
|
|
|
|
'hosts_total',
|
|
|
|
'hosts_unreachable_handled',
|
|
|
|
'hosts_unreachable_unhandled',
|
|
|
|
'hosts_up',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2015-08-17 14:05:49 +02:00
|
|
|
public function getStaticFilterColumns()
|
2015-06-03 14:15:09 +02:00
|
|
|
{
|
|
|
|
return array(
|
2015-08-25 16:38:23 +02:00
|
|
|
'instance_name',
|
2015-06-03 14:39:43 +02:00
|
|
|
'host', 'host_alias', 'host_display_name', 'host_name',
|
2015-06-03 14:15:09 +02:00
|
|
|
'hostgroup', 'hostgroup_alias', 'hostgroup_name',
|
|
|
|
'service', 'service_description', 'service_display_name',
|
|
|
|
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|