Change-Id: I773def408620a85f788c8d54a9e86820aba25c28
template: kibana/files/objects/dashboard_logs.json
type: 'dashboard'
+Client directly use a Kibana object that is stored in model:
+
+ .. code-block:: yaml
+
+ kibana:
+ client:
+ enabled: true
+ server:
+ host: elasticsearch.host
+ port: 9200
+ object:
+ logs:
+ enabled: true
+ name: Logs
+ type: 'dashboard'
+ content:
+ title: "Logs"
+ hits: 0
+ description: ""
+ ...
+
Read more
=========
{%- for object_name, object in client.get('object', {}).iteritems() %}
kibana_object_{{ object_name }}:
{%- if object.get('enabled', False) %}
+ {%- if object.content is defined %}
+ kibana_object.present:
+ - kibana_content: {{ object.content|json }}
+ {%- else %}
{% import_json object.template as content %}
kibana_object.present:
- kibana_content: {{ content|json }}
+ {%- endif %}
{%- else %}
kibana_object.absent:
{%- endif %}
enabled: true
template: kibana/files/objects/dashboard_logs.json
type: dashboard
+ logs-directly:
+ enabled: true
+ type: dashboard
+ content:
+ title: "Logs"
+ hits: 0
+ description: "Test dashboard"