Pēteris Caune
8d0930c4b9
Fix unclosed sockets in statsd tests
2024-06-27 11:03:29 +03:00
Pēteris Caune
1a5ca45d09
Fix InvalidResponseError() initialization parameters
2024-06-20 15:15:14 +03:00
Pēteris Caune
9dbd961beb
Add test case for InvalidResponseError handling
2024-06-20 15:11:42 +03:00
Pēteris Caune
274a59956a
Make statsd metrics collection optional
...
To enable, set STATSD_HOST env var (or set STATSD_HOST in
local_settings.py):
STATSD_HOST=localhost:1234
cc: #974
2024-03-18 12:55:36 +02:00
Pēteris Caune
4d0cf7fb80
Remove @nolog decorator
...
The purpose of @nolog was to disable logging in certain
test cases to avoid console spam during tests. But with the
current logging configuration console is clean even without it.
2024-02-06 17:30:24 +02:00
Pēteris Caune
ae94648efd
Fix minio-related mypy warnings
...
A few warnings remain, I think these should be fixed in minio-py:
https://github.com/minio/minio-py/pull/1389
2024-01-04 16:01:34 +02:00
Pēteris Caune
8b006e0d58
Move nolog decorator to hc.test so it can be reused
2023-10-25 13:48:55 +03:00
Pēteris Caune
42a137e128
Switch to pydantic for validating Telegram incoming webhooks
2023-10-17 16:10:35 +03:00
Pēteris Caune
5d99c544ee
Increase the precision in hc.lib.date.format_approx_duration
...
Format durations in one of the following forms:
* "{x} days {y} h"
* "{y} h {z} min"
* "{z} min {w} sec"
2023-10-02 12:50:59 +03:00
Pēteris Caune
58d7c8cc55
Simplify DowntimeSummary
2023-09-27 17:16:16 +03:00
Pēteris Caune
f7af738c76
Add monthly uptime percentage display in Check Details page
...
Fixes : #773
2023-09-27 13:44:35 +03:00
Pēteris Caune
c9bf3132fe
Replace usage of typing.List, typing.Optional etc. with modern syntax
2023-09-06 11:27:43 +03:00
Pēteris Caune
9153c1a552
Improve type hints
2023-09-05 13:31:59 +03:00
Pēteris Caune
897cf0088b
Add bold and monospace text formatting in Signal notifications
2023-08-04 12:38:34 +03:00
Pēteris Caune
d7d9702ee0
Add support for regex validation in hc.lib.jsonschema
...
Also, switch to f-strings and add tests for validation
positive cases
2023-06-14 16:30:27 +03:00
Pēteris Caune
db9fd529e2
Make hc.lib.emails raise exceptions when EMAIL_ settings are not set
2023-06-13 13:27:58 +03:00
Pēteris Caune
0fa9222264
Switch to case-insensitive bounce id signatures
2023-05-24 18:13:36 +03:00
Pēteris Caune
0a724a44c7
Change timezone.now import in hc.lib.date and fix tests
2023-05-04 11:02:09 +03:00
Pēteris Caune
1fd343a820
Remove usages of django.utils.timezone.utc which is deprecated
2023-05-04 10:56:19 +03:00
Pēteris Caune
1c80b32adf
Use simpler base classes in hc.lib.tests
2023-05-04 10:20:36 +03:00
Pēteris Caune
9ead449d90
Add error logging in hc.lib.s3.get_object
2023-04-14 15:14:23 +03:00
Pēteris Caune
f6aeda978d
Fix hc.lib.s3.get_object to handle more urllib3 exceptions
2023-03-29 14:00:10 +03:00
Pēteris Caune
19383d0414
Improve the error message about rejected private IPs
2023-02-03 10:08:06 +02:00
Pēteris Caune
e995d299b8
Improve hc.lib.s3 tests
2023-02-01 10:25:17 +02:00
Pēteris Caune
3992c0927b
Add handling for ProtocolError exceptions in hc.lib.s3.get_object
2023-02-01 09:31:15 +02:00
Pēteris Caune
818ccad56f
Fix week, month boundary calculation to use user's timezone
2022-12-01 13:46:21 +02:00
Pēteris Caune
161430fb10
Sort imports and add "from __future__ import annotations"
2022-10-17 16:52:15 +03:00
Pēteris Caune
ec25b319ab
Upgrade to cronsim 2.2
2022-09-22 16:16:39 +03:00
Pēteris Caune
3b137df825
Fix latin-1 handling in headers
2022-08-18 10:49:28 +03:00
Pēteris Caune
1f10aedf6c
Add more tests for hc.lib.curl
2022-08-17 16:12:21 +03:00
Pēteris Caune
9fc13403b4
Add tests for hc.lib.curl
2022-08-17 15:39:17 +03:00
Pēteris Caune
003d35d431
Add "Filter by keywords in the message body" feature
...
cc: #653
2022-07-12 15:46:15 +03:00
Pēteris Caune
c4bbb4432a
Fix unwanted localization in badge SVG generation
...
Fixes : #629
2022-04-01 15:58:17 +03:00
Pēteris Caune
1b0d0eac6a
Enable retry for SMTPDataError
2021-09-23 15:20:42 +03:00
Pēteris Caune
fca600659d
Improve hc.lib.emails.send()
...
- add optional `from_email` argument
- add test cases that exercise the retry loop
2021-08-03 19:02:25 +03:00
Pēteris Caune
df44ee58c0
Add an option for weekly reports (in addition to monthly)
2021-05-24 13:44:34 +03:00
Pēteris Caune
b9997137a6
Bump croniter version to 1.0.2
2021-01-27 09:46:33 +02:00
Pēteris Caune
461ef5e088
Paused ping handling can be controlled via API. Fixes #376
2020-06-09 15:16:39 +03:00
Pēteris Caune
ccd30ac239
Stricter cron validation, reject schedules like "At midnight of February 31"
2020-02-07 11:38:50 +02:00
Pēteris Caune
cdad632082
Show sub-second durations with higher precision, 2 digits after decimal point. Fixes #321
2020-01-17 14:41:41 +02:00
Pēteris Caune
8d81ea8f9d
Add "Shell Commands" integration. Fixes #302
2019-11-20 16:00:53 +02:00
Pēteris Caune
2bb769f7bb
Send monthly reports on 1st of every month, not randomly during the month
2019-10-12 20:07:09 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black
2019-05-15 14:27:50 +03:00
Pēteris Caune
954ca4576b
Improved logic for displaying job execution times in log. Fixes #219
2019-03-01 14:39:44 +02:00
Pēteris Caune
b3e290b284
Show elapsed times in ping log
2018-12-25 13:01:49 +02:00
Pēteris Caune
887c4d534a
add "minLength" support to the jsonschema validator
2018-10-29 17:13:45 +02:00
Pēteris Caune
eece7c7551
Handle "required" keyword.
2017-05-11 12:54:58 +03:00
Pēteris Caune
b93336a44d
API support for cron syntax
2017-01-04 15:27:59 +02:00
Pēteris Caune
52cd2a9c8e
API rejects too long check names
2016-12-21 17:38:25 +02:00
Pēteris Caune
c5568b6dd1
Move json validation code to a separate file, add support for array and enum, add tests.
2016-09-23 14:08:31 +03:00