From 7b9ddade2e06a2a5f72f577a893e91878939220b Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 11 Jan 2016 22:26:37 +0300 Subject: [PATCH] Added initial methods for getting groups, hosts apps and items. --- plugins/datasource-zabbix/zabbixCacheSrv.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/datasource-zabbix/zabbixCacheSrv.js b/plugins/datasource-zabbix/zabbixCacheSrv.js index fd6926b..75d92bc 100644 --- a/plugins/datasource-zabbix/zabbixCacheSrv.js +++ b/plugins/datasource-zabbix/zabbixCacheSrv.js @@ -34,10 +34,22 @@ function (angular, _) { var p = ZabbixCache.prototype; + p.getGroups = function() { + return this._groups; + }; + p.getHosts = function() { return this._hosts; }; + p.getApplications = function() { + return this._applications; + }; + + p.getItems = function() { + return this._items; + }; + /** * Group Zabbix applications by name * @param {[type]} applications [description]