1 {% set db = db|default({}) -%}
4 {% macro calc_col(index) -%}
5 {% if index is divisibleby 2 %}
12 {% macro calc_row(index) -%}
13 {% set num = (index - 1)//2 %}
18 "description": "Kibana dashboard for {{db.query}}",
20 "kibanaSavedObjectMeta": {
26 "analyze_wildcard": true,
35 "label": "{{db.query.case_name}} {{db.query.metric}}",
36 "test_family": "{{db.test_family}}"
42 {% for id in db.ids %}
44 "col": {{calc_col(loop.index)}},
46 "panelIndex": {{loop.index}},
47 "row": {{calc_row(loop.index)}},
50 "type": "visualization"
52 {% if not loop.last %}
59 "title": "{{db.query.project_name}} {{db.query.case_name}} {{db.query.installer}} {{db.query.metric}} {{db.query.pod}}",