New route for event history summary prototype

This commit is contained in:
Thomas Gelf 2014-02-21 10:44:03 +00:00
parent d1dc4f10f7
commit 23cbb8c9b8
1 changed files with 12 additions and 0 deletions

View File

@ -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(