Module: check_mk
Branch: master
Commit: bfd5ae0a80521d22bb78cc0996f8649c6f8bcd6d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bfd5ae0a80521d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 8 08:52:12 2011 +0100
Added aggr_single_api view for fetching single aggregation infos via json/python API
---
web/plugins/views/builtin.py | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 61f8fbf..818ff24 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -2436,6 +2436,37 @@ multisite_builtin_views.update({
'topic': u'Business Intelligence',
'user_sortable': None},
+# Shows minimal information about a single aggregation which has to be set via
aggr_name=<Name>.
+# Use together with output_format=python for API calls
+'aggr_single_api': {'browser_reload': 0,
+ 'column_headers': 'pergroup',
+ 'datasource': 'bi_aggregations',
+ 'description': u'Single Aggregation for simple API
calls. Contains the state and state output.',
+ 'group_painters': [],
+ 'hard_filters': [],
+ 'hard_filtervars': [],
+ 'hidden': True,
+ 'hide_filters': ['aggr_name'],
+ 'hidebutton': True,
+ 'icon': 'aggr',
+ 'layout': 'table',
+ 'linktitle': 'Single Aggregation',
+ 'mobile': False,
+ 'mustsearch': False,
+ 'name': 'aggr_single_api',
+ 'num_columns': 1,
+ 'owner': 'omdadmin',
+ 'painters': [('aggr_state_num', None, ''),
+ ('aggr_output', None, '')],
+ 'play_sounds': False,
+ 'public': True,
+ 'show_checkboxes': None,
+ 'show_filters': [],
+ 'sorters': [],
+ 'title': u'Single Aggregation for simple API
calls',
+ 'topic': u'Business Intelligence',
+ 'user_sortable': None},
+
# +----------------------------------------------------------------------+
# | _ _ _ _ __ _ _ _ |
# | | \ | | ___ | |_(_)/ _(_) ___ __ _| |_(_) ___ _ __ ___ |