Commit graph

56 commits

Author SHA1 Message Date
HgO
acd9f1764d replace command prefix with bot mention 2024-04-18 10:18:37 +02:00
HgO
928d587a45 add more reactions and add bot replies when user seems angry 2024-04-17 19:22:42 +02:00
HgO
d0fe802f8b linting 2024-04-17 15:59:39 +02:00
HgO
96b22672d6 remove common log level 2024-04-17 15:56:43 +02:00
HgO
6ae3355f3c add more tests 2024-04-17 14:59:37 +02:00
HgO
86aa44b260 implement matrix client failover 2024-01-22 11:35:13 +01:00
HgO
fbbd66edd7 Resolve "Renvoyer l'alerte quand on reçoit une RoomSendError" 2022-11-25 18:59:32 +00:00
HgO
433cb4237b format code 2022-10-26 18:08:36 +02:00
HgO
6e589d4e23 handle RoomSendError response event after sending message to Matrix 2022-10-26 18:02:23 +02:00
HgO
6bd000d4bf add test for key verification end callback 2022-10-26 17:17:31 +02:00
HgO
229db52537 add tests for key verification callbacks 2022-10-26 15:53:45 +02:00
HgO
004a575c81 verify devices with emojis 2022-10-26 13:25:47 +02:00
HgO
0703517f85 fix tests for device_id 2022-08-27 14:14:38 +02:00
HgO
57a704cd94 optional config id 2022-08-27 13:46:58 +02:00
HgO
e2bdeee237 fix alertmanager tests 2022-08-08 18:58:08 +02:00
HgO
dee0ba6c81 setup docker deployment 2022-08-08 16:43:05 +02:00
HgO
264687a62d add tests for chat functions 2022-08-08 12:38:09 +02:00
HgO
6fd687cc90 add force option for update silence 2022-08-08 11:26:08 +02:00
HgO
3705f6c219 fix ack existing silence 2022-08-08 01:44:08 +02:00
HgO
4e50ddf5bb useless cache removal 2022-08-08 00:36:39 +02:00
HgO
f381eac689 auto extend silence without duration 2022-08-08 00:28:36 +02:00
HgO
6781bc82fa render alert from jinja2 templates 2022-07-28 17:39:47 +02:00
HgO
bbcc0cc427 webhook accept room_id param; config define list of allowed rooms ; check if duration is positive in command 2022-07-28 14:37:23 +02:00
HgO
810f9e2ceb fix remove reaction 2022-07-28 10:35:11 +02:00
HgO
978f0adc61 fix silence status 2022-07-27 21:28:57 +02:00
HgO
a1f701d2ba change max duration to 10 years 2022-07-27 21:11:11 +02:00
HgO
5ed5a4aa08 refactor to handle one alert per matrix event 2022-07-26 19:33:04 +02:00
HgO
f1691fc3a6 test callbacks for reactions and test caching 2022-07-17 02:35:15 +02:00
HgO
76b8ead9d7 refactor command to use subclass per command 2022-07-16 23:08:12 +02:00
HgO
c4752d8192 rename /alert endpoint to /alerts 2022-07-12 18:22:11 +02:00
HgO
fa39283bf4 add health endpoint 2022-07-12 18:19:52 +02:00
HgO
cd196c2143 improve error message 2022-07-12 00:29:55 +02:00
HgO
1e006cb66f parse duration once in command and handle exceptions 2022-07-12 00:27:17 +02:00
HgO
2359f6ca77 add unit tests for webhook, alert and missing cache 2022-07-11 23:18:57 +02:00
HgO
0048fb84ea check if entry is in cache 2022-07-10 15:11:25 +02:00
HgO
a8bdc80612 format code 2022-07-10 14:09:00 +02:00
HgO
1560093127 refactor command 2022-07-10 14:06:36 +02:00
HgO
bbdf648cd9 delete silence with specific matchers 2022-07-10 12:51:49 +02:00
HgO
3ca45fccb1 create silence with specific matchers 2022-07-10 02:40:04 +02:00
HgO
6f55d39fb6 update requirements 2022-07-09 15:25:16 +02:00
HgO
bc3f6ac452 create tests for config 2022-07-09 12:22:41 +02:00
HgO
687afe32ef improve errors for alertmanager 2022-07-09 10:38:40 +02:00
HgO
5d2d109da1 cleanup alertmanager client tests 2022-07-09 10:24:17 +02:00
HgO
4873abca70 add tests for alertmanager client 2022-07-09 09:56:28 +02:00
HgO
9a3f775195 unit tests for command and callbacks ; make alertmanager requests async 2022-07-08 21:11:25 +02:00
HgO
baf73ea5a2 Revert "reuse same cache everywhere"
This reverts commit a3b13e3796.
2022-07-06 01:19:44 +02:00
HgO
a3b13e3796 reuse same cache everywhere 2022-07-06 01:04:06 +02:00
HgO
6687e7a92a allow silence deletion 2022-07-06 00:54:13 +02:00
HgO
96ee7f068a create matrix bot to send and acknowledge alerts 2022-07-04 01:03:24 +02:00
HgO
6ab094acdc fix typing and configure mypy 2022-06-14 23:37:54 +02:00