summaryrefslogtreecommitdiffstats
path: root/library/Toplevelview/Monitoring/Hostgroupsummary.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Toplevelview/Monitoring/Hostgroupsummary.php')
-rw-r--r--library/Toplevelview/Monitoring/Hostgroupsummary.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/library/Toplevelview/Monitoring/Hostgroupsummary.php b/library/Toplevelview/Monitoring/Hostgroupsummary.php
new file mode 100644
index 0000000..c89f09c
--- /dev/null
+++ b/library/Toplevelview/Monitoring/Hostgroupsummary.php
@@ -0,0 +1,33 @@
+<?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\Hostgroupsummary as IcingaHostgroupsummary;
+
+/**
+ * Patched version of Hostgroupsummary
+ *
+ * Just to load a patched version of HostgroupsummaryQuery
+ */
+class Hostgroupsummary extends IcingaHostgroupsummary
+{
+ /** @noinspection PhpMissingParentConstructorInspection */
+ /**
+ * @param ConnectionInterface $connection
+ * @param array|null $columns
+ * @param array|null $options
+ * @noinspection PhpMissingParentConstructorInspection
+ */
+ public function __construct(
+ ConnectionInterface $connection,
+ array $columns = null,
+ $options = null
+ ) {
+ /** @var MonitoringBackend $connection */
+ $this->connection = $connection;
+ $this->query = new HostgroupsummaryQuery($connection->getResource(), $columns, $options);
+ }
+}