diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 96f9b902f..0bfd9f81a 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -52,6 +52,7 @@ use Icinga\Module\Monitoring\DataView\ServiceStatus as ServiceStatusView; use Icinga\Module\Monitoring\DataView\Comment as CommentView; use Icinga\Module\Monitoring\DataView\Groupsummary as GroupsummaryView; use Icinga\Module\Monitoring\DataView\EventHistory as EventHistoryView; +use Icinga\Module\Monitoring\DataView\StateHistorySummary; use Icinga\Module\Monitoring\Filter\UrlViewFilter; use Icinga\Module\Monitoring\DataView\ServiceStatus; use Icinga\Filter\Filterable; @@ -273,6 +274,17 @@ class Monitoring_ListController extends MonitoringController $this->handleFormatRequest($query); } + public function statehistorysummaryAction() + { + $this->addTitleTab('statehistorysummary'); + + $query = StateHistorySummary::fromRequest( + $this->_request, array('day', 'cnt_events') + )->getQuery(); + $this->view->summary = $query->fetchAll(); + $this->handleFormatRequest($query); + } + public function contactgroupsAction() { $query = ContactgroupView::fromRequest(