2013-10-18 11:26:15 +02:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
|
2013-10-18 11:26:15 +02:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\DataView;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* View for runtimesummary query
|
|
|
|
*/
|
|
|
|
class Runtimesummary extends DataView
|
|
|
|
{
|
|
|
|
/**
|
2015-08-17 14:03:34 +02:00
|
|
|
* {@inheritdoc}
|
2013-10-18 11:26:15 +02:00
|
|
|
*/
|
|
|
|
public function getColumns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'check_type',
|
|
|
|
'active_checks_enabled',
|
|
|
|
'passive_checks_enabled',
|
|
|
|
'execution_time',
|
|
|
|
'latency',
|
|
|
|
'object_count',
|
|
|
|
'object_type'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-08-17 14:03:34 +02:00
|
|
|
* {@inheritdoc}
|
2013-10-18 11:26:15 +02:00
|
|
|
*/
|
|
|
|
public function getSortRules()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
'active_checks_enabled' => array(
|
|
|
|
'order' => self::SORT_ASC
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|