mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-15 05:05:05 +00:00
docs(alerting): Fix the homeassistant event structure example (#1213)
docs(Homeassistant): Fix the event structure in the example
This commit is contained in:
10
README.md
10
README.md
@@ -1070,13 +1070,13 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
data_template:
|
data_template:
|
||||||
title: "Gatus Alert: {{ trigger.event.data.endpoint }}"
|
title: "Gatus Alert: {{ trigger.event.data.event_data.endpoint }}"
|
||||||
message: >
|
message: >
|
||||||
Status: {{ trigger.event.data.status }}
|
Status: {{ trigger.event.data.event_data.status }}
|
||||||
{% if trigger.event.data.description %}
|
{% if trigger.event.data.event_data.description %}
|
||||||
Description: {{ trigger.event.data.description }}
|
Description: {{ trigger.event.data.event_data.description }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for condition in trigger.event.data.conditions %}
|
{% for condition in trigger.event.data.event_data.conditions %}
|
||||||
{{ '✅' if condition.success else '❌' }} {{ condition.condition }}
|
{{ '✅' if condition.success else '❌' }} {{ condition.condition }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user