{% set vis = vis|default({}) -%} { "description": "Kibana visualization for {{ vis.filters }}", "kibanaSavedObjectMeta": { "searchSourceJSON": { "filter": [ {% for key, value in vis.filters.iteritems() if key != "metric" %} {% if not (key == "pod_name" and value == "all") %} { "match": { "{{ key }}": { "query": "{{ value }}", "type": "phrase" } } } {% if not loop.last %} , {% endif %} {% endif %} {% endfor %} ] } }, "scenario": 1, "title": "{{vis.filters.project_name}} {{vis.filters.case_name}} {{vis.filters.installer}} {{vis.filters.metric}} {{vis.filters.pod_name}} {{vis.filters.scenario}}", "uiStateJSON": {}, "visState": {{ vis.visState }} }