mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-06-10 08:50:13 +02:00
NotificationQuery: Use query column service_description' instead of
service'
refs #8613
This commit is contained in:
parent
96954ea9a1
commit
15399d77ce
@ -61,7 +61,7 @@ class Monitoring_AlertsummaryController extends Controller
|
||||
array(
|
||||
'host_name',
|
||||
'host_display_name',
|
||||
'service',
|
||||
'service_description',
|
||||
'service_display_name',
|
||||
'notification_output',
|
||||
'notification_contact',
|
||||
@ -479,7 +479,7 @@ class Monitoring_AlertsummaryController extends Controller
|
||||
array(
|
||||
'host_name',
|
||||
'host_display_name',
|
||||
'service',
|
||||
'service_description',
|
||||
'service_display_name',
|
||||
'notification_output',
|
||||
'notification_contact',
|
||||
|
@ -326,7 +326,7 @@ class Monitoring_ListController extends Controller
|
||||
$this->setAutorefreshInterval(15);
|
||||
$query = $this->backend->select()->from('notification', array(
|
||||
'host_name',
|
||||
'service',
|
||||
'service_description',
|
||||
'notification_output',
|
||||
'notification_contact',
|
||||
'notification_start_time',
|
||||
|
@ -157,7 +157,7 @@ class Monitoring_ShowController extends Controller
|
||||
|
||||
$notifications = $this->backend->select()->from('notification', array(
|
||||
'host_name',
|
||||
'service',
|
||||
'service_description',
|
||||
'notification_output',
|
||||
'notification_contact',
|
||||
'notification_start_time',
|
||||
|
@ -24,7 +24,7 @@ use Icinga\Module\Monitoring\Object\Service;
|
||||
<table data-base-target="_next" class="action">
|
||||
<tbody>
|
||||
<?php foreach ($notifications as $notification):
|
||||
if (isset($notification->service)) {
|
||||
if (isset($notification->service_description)) {
|
||||
$isService = true;
|
||||
$stateName = Service::getStateText($notification->notification_state);
|
||||
} else {
|
||||
@ -44,7 +44,7 @@ use Icinga\Module\Monitoring\Object\Service;
|
||||
<?php if ($isService): ?>
|
||||
<?= $this->icon('service', $this->translate('Service')); ?>
|
||||
<?= $this->link()->service(
|
||||
$notification->service,
|
||||
$notification->service_description,
|
||||
$notification->service_display_name,
|
||||
$notification->host_name,
|
||||
$notification->host_display_name
|
||||
|
@ -14,7 +14,7 @@ class NotificationQuery extends IdoQuery
|
||||
),
|
||||
'objects' => array(
|
||||
'host_name' => 'o.name1',
|
||||
'service' => 'o.name2'
|
||||
'service_description' => 'o.name2'
|
||||
),
|
||||
'contact' => array(
|
||||
'notification_contact' => 'c_o.name1',
|
||||
|
@ -14,7 +14,7 @@ class Notification extends DataView
|
||||
{
|
||||
return array(
|
||||
'host_name',
|
||||
'service',
|
||||
'service_description',
|
||||
'notification_state',
|
||||
'notification_start_time',
|
||||
'notification_contact',
|
||||
|
Loading…
x
Reference in New Issue
Block a user