mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
parent
1e9bc6c7d4
commit
3adf7752c4
@ -29,7 +29,6 @@
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
use Icinga\Application\Benchmark;
|
||||
use Icinga\Data\Db\Query;
|
||||
use Icinga\Module\Monitoring\Controller;
|
||||
use Icinga\Web\Hook;
|
||||
use Icinga\Web\Widget\Tabextension\DashboardAction;
|
||||
|
@ -30,7 +30,7 @@
|
||||
namespace Icinga\Module\Monitoring\Backend\Ido\Query;
|
||||
|
||||
use Icinga\Logger\Logger;
|
||||
use Icinga\Data\Db\Query;
|
||||
use Icinga\Data\Db\DbQuery;
|
||||
use Icinga\Exception\ProgrammingError;
|
||||
use Icinga\Application\Icinga;
|
||||
use Icinga\Web\Session;
|
||||
|
@ -3,14 +3,14 @@
|
||||
namespace Icinga\Module\Monitoring\Object;
|
||||
|
||||
use Icinga\Module\Monitoring\DataView\HostStatus;
|
||||
use Icinga\Data\Db\Query;
|
||||
use Icinga\Data\Db\DbQuery;
|
||||
|
||||
class Host extends AbstractObject
|
||||
{
|
||||
public $type = 'host';
|
||||
public $prefix = 'host_';
|
||||
|
||||
protected function applyObjectFilter(Query $query)
|
||||
protected function applyObjectFilter(DbQuery $query)
|
||||
{
|
||||
return $query->where('host_name', $this->host_name);
|
||||
}
|
||||
|
@ -3,14 +3,14 @@
|
||||
namespace Icinga\Module\Monitoring\Object;
|
||||
|
||||
use Icinga\Module\Monitoring\DataView\ServiceStatus;
|
||||
use Icinga\Data\Db\Query;
|
||||
use Icinga\Data\Db\DbQuery;
|
||||
|
||||
class Service extends AbstractObject
|
||||
{
|
||||
public $type = 'service';
|
||||
public $prefix = 'service_';
|
||||
|
||||
protected function applyObjectFilter(Query $query)
|
||||
protected function applyObjectFilter(DbQuery $query)
|
||||
{
|
||||
return $query->where('service_host_name', $this->host_name)
|
||||
->where('service_description', $this->service_description);
|
||||
|
Loading…
x
Reference in New Issue
Block a user