summaryrefslogtreecommitdiffstats
path: root/library/Toplevelview/Monitoring/Servicestatus.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:30:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:30:50 +0000
commitd5f222b7ebf4d2c2d47d20a25adcc9aadf67fbd5 (patch)
treeda9b32212bf99154450a7668f61a75f65617a9fa /library/Toplevelview/Monitoring/Servicestatus.php
parentInitial commit. (diff)
downloadicingaweb2-module-toplevelview-upstream.tar.xz
icingaweb2-module-toplevelview-upstream.zip
Adding upstream version 0.3.3.upstream/0.3.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library/Toplevelview/Monitoring/Servicestatus.php')
-rw-r--r--library/Toplevelview/Monitoring/Servicestatus.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/library/Toplevelview/Monitoring/Servicestatus.php b/library/Toplevelview/Monitoring/Servicestatus.php
new file mode 100644
index 0000000..e43572f
--- /dev/null
+++ b/library/Toplevelview/Monitoring/Servicestatus.php
@@ -0,0 +1,38 @@
+<?php
+/* Copyright (C) 2017 Icinga Development Team <info@icinga.com> */
+
+namespace Icinga\Module\Toplevelview\Monitoring;
+
+use Icinga\Data\ConnectionInterface;
+use Icinga\Module\Monitoring\Backend\MonitoringBackend;
+use Icinga\Module\Monitoring\DataView\Servicestatus as IcingaServiceStatus;
+
+class Servicestatus extends IcingaServiceStatus
+{
+ /** @noinspection PhpMissingParentConstructorInspection */
+ /**
+ * @param ConnectionInterface $connection
+ * @param array|null $columns
+ * @noinspection PhpMissingParentConstructorInspection
+ */
+ public function __construct(ConnectionInterface $connection, array $columns = null, $options = null)
+ {
+ /** @var MonitoringBackend $connection */
+ $this->connection = $connection;
+ $this->query = new ServicestatusQuery($connection->getResource(), $columns, $options);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getColumns()
+ {
+ return array_merge(
+ parent::getColumns(),
+ array(
+ //'service_in_notification_period',
+ 'service_notification_period',
+ )
+ );
+ }
+}