0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-15 09:24:11 +00:00
Commit graph

24 commits

Author SHA1 Message Date
Pēteris Caune
8372abf019
Fix the email integration to use Flip.new_status 2024-04-12 14:05:44 +03:00
Pēteris Caune
28fdfd1362
Change Channel.notify() signature to take Flip object as an argument
... and pass it to Transport.notify_flip().

This allows us to pass flip-specific information (the flip timestamp,
the new status) to transport classes.
2024-04-12 13:54:16 +03:00
Pēteris Caune
a0545b875e
Add "Last ping subject" field in email notifications 2024-03-13 15:45:27 +02:00
Pēteris Caune
c9540f8ddd
Update email integration to use Ping.get_kind_display() 2023-10-23 11:39:37 +03:00
Pēteris Caune
ee40cd8dab
Fix type warnings 2023-09-08 16:47:27 +03:00
Pēteris Caune
2901f03146
Fix type warnings 2023-09-03 09:04:38 +03:00
Pēteris Caune
2b73ddde17
Improve type hints 2023-08-29 19:10:27 +03:00
Pēteris Caune
97dc6e73c5
Add "Time Zone" field in email notifications 2023-08-03 11:29:41 +03:00
Pēteris Caune
e02a87ef48
Fix Message-ID generation when From address contains angle brackets 2023-05-26 16:51:52 +03:00
Pēteris Caune
dc44f67b83
Update hc.lib.emails to use DEFAULT_FROM_EMAIL for generating Message-ID 2023-05-26 14:32:09 +03:00
Pēteris Caune
8926fd5ac6
Add experimental support for setting custom MAIL FROM address
If settings.EMAIL_MAIL_FROM_TMPL is set, it will be used
as the MAIL FROM (envelope sender) address.

The EMAIL_MAIL_FROM_TMPL value should contain a "%s" placeholder.

This is intended for routing email bounce notifications to a specific
MX server. For example, if the site runs on example.com
but we want to receive bounce notifications at the mail server running
on bounces.example.com, we can set

    EMAIL_MAIL_FROM_TMPL = "%s@bounces.example.com"

Experimental, may change!
2023-05-23 15:38:39 +03:00
Pēteris Caune
5113b96879
Fix mock.call_args usage in tests 2023-05-03 15:07:49 +03:00
Pēteris Caune
161430fb10
Sort imports and add "from __future__ import annotations" 2022-10-17 16:52:15 +03:00
Pēteris Caune
01720ca9ae
Update notification templates to handle "log" events 2022-07-21 14:22:41 +03:00
Pēteris Caune
0553f0a38a
Fix the display of ignored pings with non-zero exit status 2022-06-30 16:49:09 +03:00
Pēteris Caune
93c13b8221
Include check.desc in email text template, update tests 2022-06-17 14:55:34 +03:00
Pēteris Caune
4c58c55741
Fix tests to skip time.sleep() 2022-04-19 11:39:28 +03:00
Pēteris Caune
32f021b9c5
Update email template to handle not yet uploaded ping bodies 2022-04-13 10:43:12 +03:00
Pēteris Caune
05bb80130b
Add support for storing ping bodies in S3-compatible object storage
This is an initial, minimal implementation. It is currently
missing: error handling, timeouts for S3 operations, documentation.

cc: 
2022-02-28 11:51:04 +02:00
Pēteris Caune
5ecd625c0b
Add Ping.body_raw field for storing body as bytes 2022-02-25 16:50:54 +02:00
Pēteris Caune
7b5c5498c2
Add a "notification" keyword in "notify()" methods
Each transport class has a notify() method. This method
used to have a single argument: "check". Some transport
classes require some extra information, and we were passing
it by adding ad-hoc fields to Check objects in
hc.api.models.Channel.notify().

After this change, notify() of each transport class expects
two arguments: "check" and "notification". This is cleaner
and more explicit than stuffing extra information in the
Check object.
2022-01-19 15:51:30 +02:00
Pēteris Caune
2bfea987e9
Replace details_url with cloaked_url in email and chat notifications 2021-03-04 16:55:05 +02:00
Pēteris Caune
cd99af14ba
Add Signal integration
Fixes: 
2021-01-09 11:58:18 +02:00
Pēteris Caune
8fe8e0f605
Update alert email template: more information, less styling
Fixes: 
2020-12-26 18:11:36 +02:00