1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-04 11:11:44 +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:
Andrej Vaňo
2025-08-19 19:03:59 +02:00
committed by GitHub
parent 2f99eccf5f
commit 3e713dfee3

View File

@@ -1070,13 +1070,13 @@ automation:
action:
- service: notify.notify
data_template:
title: "Gatus Alert: {{ trigger.event.data.endpoint }}"
title: "Gatus Alert: {{ trigger.event.data.event_data.endpoint }}"
message: >
Status: {{ trigger.event.data.status }}
{% if trigger.event.data.description %}
Description: {{ trigger.event.data.description }}
Status: {{ trigger.event.data.event_data.status }}
{% if trigger.event.data.event_data.description %}
Description: {{ trigger.event.data.event_data.description }}
{% endif %}
{% for condition in trigger.event.data.conditions %}
{% for condition in trigger.event.data.event_data.conditions %}
{{ '✅' if condition.success else '❌' }} {{ condition.condition }}
{% endfor %}
```