Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Jan 29, 2025
1 parent ef4be42 commit 214ed72
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions crates/bestool/tests/cmd/alerts.in/alerts/sql.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
recipients:
- [email protected]
send:
- target: email
addresses:
- [email protected]
subject: "Tamanu Alert - {{ now }}"
template: |
Automated alert! There have been {{ rows | length }} jobs
with errors in the past {{ interval }}. Here are the first 2:
{% for row in rows | slice(end=2) %}
- {{ row.topic }}: {{ row.error }}
{% endfor %}
sql: |
SELECT * FROM jobs
WHERE error IS NOT NULL
AND created_at > $1
subject: "Tamanu Alert - {{ now }}"
template: |
Automated alert! There have been {{ rows | length }} jobs
with errors in the past {{ interval }}. Here are the first 2:
{% for row in rows | slice(end=2) %}
- {{ row.topic }}: {{ row.error }}
{% endfor %}
SELECT * FROM jobs
WHERE error IS NOT NULL
AND created_at > $1

0 comments on commit 214ed72

Please sign in to comment.