Spaces:
Runtime error
Runtime error
Adding jinja template
Browse files- config.yaml +12 -0
config.yaml
CHANGED
@@ -200,6 +200,18 @@ sink:
|
|
200 |
_target_: obsei.sink.SlackSinkConfig
|
201 |
slack_token: ''
|
202 |
channel_id: ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
Elastic:
|
204 |
_icon_: "https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/elastic.png"
|
205 |
_help_:
|
|
|
200 |
_target_: obsei.sink.SlackSinkConfig
|
201 |
slack_token: ''
|
202 |
channel_id: ''
|
203 |
+
jinja_template: |
|
204 |
+
:bell: Hi there!, a new notification by *Obsei*
|
205 |
+
>Content:
|
206 |
+
```
|
207 |
+
{%- for key, value in payload.items() recursive%}
|
208 |
+
{%- if value is mapping -%}
|
209 |
+
{{loop(value.items())}}
|
210 |
+
{%- else %}
|
211 |
+
{{key}}: {{value}}
|
212 |
+
{%- endif %}
|
213 |
+
{%- endfor%}
|
214 |
+
```
|
215 |
Elastic:
|
216 |
_icon_: "https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/elastic.png"
|
217 |
_help_:
|