New route for event history summary prototype
This commit is contained in:
parent
d1dc4f10f7
commit
23cbb8c9b8
|
@ -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\Comment as CommentView;
|
||||||
use Icinga\Module\Monitoring\DataView\Groupsummary as GroupsummaryView;
|
use Icinga\Module\Monitoring\DataView\Groupsummary as GroupsummaryView;
|
||||||
use Icinga\Module\Monitoring\DataView\EventHistory as EventHistoryView;
|
use Icinga\Module\Monitoring\DataView\EventHistory as EventHistoryView;
|
||||||
|
use Icinga\Module\Monitoring\DataView\StateHistorySummary;
|
||||||
use Icinga\Module\Monitoring\Filter\UrlViewFilter;
|
use Icinga\Module\Monitoring\Filter\UrlViewFilter;
|
||||||
use Icinga\Module\Monitoring\DataView\ServiceStatus;
|
use Icinga\Module\Monitoring\DataView\ServiceStatus;
|
||||||
use Icinga\Filter\Filterable;
|
use Icinga\Filter\Filterable;
|
||||||
|
@ -273,6 +274,17 @@ class Monitoring_ListController extends MonitoringController
|
||||||
$this->handleFormatRequest($query);
|
$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()
|
public function contactgroupsAction()
|
||||||
{
|
{
|
||||||
$query = ContactgroupView::fromRequest(
|
$query = ContactgroupView::fromRequest(
|
||||||
|
|
Loading…
Reference in New Issue