[icinga-checkins] icinga.org: icingaweb2/feature/livestatus-playground-4787: Livestatus\Query: return available columns

git at icinga.org git at icinga.org
Sun Nov 16 17:17:20 CET 2014


Module: icingaweb2
Branch: feature/livestatus-playground-4787
Commit: d7141392a587e60b9a86632173d621fd8d3c03ee
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=d7141392a587e60b9a86632173d621fd8d3c03ee

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Nov 16 16:28:52 2014 +0100

Livestatus\Query: return available columns

---

 library/Icinga/Protocol/Livestatus/Query.php |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/library/Icinga/Protocol/Livestatus/Query.php b/library/Icinga/Protocol/Livestatus/Query.php
index 4e174bf..a9571d9 100644
--- a/library/Icinga/Protocol/Livestatus/Query.php
+++ b/library/Icinga/Protocol/Livestatus/Query.php
@@ -160,6 +160,16 @@ class Query extends SimpleQuery
         return $lql;
     }
 
+    /**
+     * Get all available columns
+     *
+     * @return array
+     */
+    public function getAvailableColumns()
+    {
+        return $this->available_columns;
+    }
+
     protected function columnsToString()
     {
         $columns = array();



More information about the icinga-checkins mailing list