icingaweb2-module-graphite/library/Graphite/Web/Controller/MonitoringAwareController.php

24 lines
607 B
PHP
Raw Normal View History

2017-09-22 05:03:59 -04:00
<?php
namespace Icinga\Module\Graphite\Web\Controller;
use Icinga\Module\Monitoring\Controller;
use Icinga\Module\Monitoring\DataView\DataView;
abstract class MonitoringAwareController extends Controller
{
/**
* Restrict the given monitored object query for the currently authenticated user
*
* @param DataView $dataView
*
* @return DataView The given data view
*/
protected function applyMonitoringRestriction(DataView $dataView)
{
$this->applyRestriction('monitoring/filter/objects', $dataView);
return $dataView;
}
}