From 3f672f0e918c5c461008a7fc0e53e63b79083d34 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Wed, 6 Dec 2017 09:07:43 +0800 Subject: remove deprecated dashboard code dashboard is not used anymore, substitute by Bitergia dashboard Change-Id: Iccfd634d0d404d23b09d88454dab38425359a2b8 Signed-off-by: SerenaFeng --- .../elastic2kibana/templates/dashboard.json | 61 ---------------------- 1 file changed, 61 deletions(-) delete mode 100644 dashboard/dashboard/elastic2kibana/templates/dashboard.json (limited to 'dashboard/dashboard/elastic2kibana/templates/dashboard.json') diff --git a/dashboard/dashboard/elastic2kibana/templates/dashboard.json b/dashboard/dashboard/elastic2kibana/templates/dashboard.json deleted file mode 100644 index cc80995..0000000 --- a/dashboard/dashboard/elastic2kibana/templates/dashboard.json +++ /dev/null @@ -1,61 +0,0 @@ -{% set db = db|default({}) -%} - - -{% macro calc_col(index) -%} - {% if index is divisibleby 2 %} - 7 - {% else %} - 1 - {% endif %} -{%- endmacro %} - -{% macro calc_row(index) -%} -{% set num = (index - 1)//2 %} - {{1 + num * 3}} -{%- endmacro %} - -{ - "description": "Kibana dashboard for {{db.query}}", - "hits": 0, - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [ - { - "query": { - "query_string": { - "analyze_wildcard": true, - "query": "*" - } - } - } - ] - } - }, - "metadata": { - "label": "{{db.query.case_name}} {{db.query.metric}}", - "test_family": "{{db.test_family}}" - }, - "optionsJSON": { - "darkTheme": false - }, - "panelsJSON": [ - {% for id in db.ids %} - { - "col": {{calc_col(loop.index)}}, - "id": "{{id}}", - "panelIndex": {{loop.index}}, - "row": {{calc_row(loop.index)}}, - "size_x": 6, - "size_y": 3, - "type": "visualization" - } - {% if not loop.last %} - , - {% endif %} - {% endfor %} - ], - "scenario": 1, - "timeRestore": false, - "title": "{{db.query.project_name}} {{db.query.case_name}} {{db.query.installer}} {{db.query.metric}} {{db.query.pod}}", - "uiStateJSON": {} -} -- cgit 1.2.3-korg