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