Commit graph

218 commits

Author SHA1 Message Date
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
6896908432 handle optional alert job 2022-07-28 11:11:50 +02:00
HgO
810f9e2ceb fix remove reaction 2022-07-28 10:35:11 +02:00
HgO
ffd1c898d6 handle invalid duration and silence expired exceptions 2022-07-27 21:35:30 +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
8dd72a6416 improve error log 2022-07-17 00:29:36 +02:00
HgO
073cde37db fix silence ID caching 2022-07-17 00:21:44 +02:00
HgO
fba263afe8 handle exception in command creation 2022-07-16 23:20:25 +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
6350da94f4 improve error message 2022-07-11 23:45:15 +02:00
HgO
19d42fc1af don't send message for nothing 2022-07-11 23:43:27 +02:00
HgO
bb14e9dda8 fix error message 2022-07-11 23:41:30 +02:00
HgO
7a273f5072 send a message when alert were not fonud 2022-07-11 23:33:35 +02:00
HgO
2359f6ca77 add unit tests for webhook, alert and missing cache 2022-07-11 23:18:57 +02:00
HgO
80abff5c6c close cache on exit 2022-07-10 18:09:25 +02:00
HgO
0048fb84ea check if entry is in cache 2022-07-10 15:11:25 +02:00
HgO
9ee0064153 add support for reaction removal 2022-07-10 14:59:21 +02:00
HgO
69b5aa20b1 start support for redaction events 2022-07-10 14:53:19 +02:00
HgO
e1d1b7aba5 start support for redaction events 2022-07-10 14:49:01 +02:00
HgO
56eb1e82b1 start support for redaction events 2022-07-10 14:42:23 +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
529fb0886a fix event reaction 2022-07-10 13:15:51 +02:00
HgO
e165b0995a handle silence reactions 2022-07-10 13:13:32 +02:00
HgO
bbdf648cd9 delete silence with specific matchers 2022-07-10 12:51:49 +02:00
HgO
af0b9c31ca fix error message 2022-07-10 03:07:31 +02:00
HgO
4d30d5b01a fix error message 2022-07-10 03:06:03 +02:00
HgO
209ba167ad fix silence matchers 2022-07-10 03:03:08 +02:00
HgO
2e2db345da create silence matchers from alert labels 2022-07-10 02:54:35 +02:00
HgO
3ca45fccb1 create silence with specific matchers 2022-07-10 02:40:04 +02:00
HgO
e0c5ea386f add typing-extensions as new dependency 2022-07-09 15:30:10 +02:00
HgO
6f55d39fb6 update requirements 2022-07-09 15:25:16 +02:00
HgO
f3151cee4c link alertmanager client to prometheus metrics 2022-07-09 12:47:19 +02:00
HgO
38d12512ef add prometheus exporter 2022-07-09 12:43:18 +02:00
HgO
25796595f3 revert changes 2022-07-09 12:31:05 +02:00
HgO
34df884be7 start webhook server 2022-07-09 12:26:50 +02:00
HgO
f5394c142f try run server and client in same task 2022-07-09 12:25:10 +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
59f5284caf count all removed silences 2022-07-09 00:08:51 +02:00
HgO
6b8a2f64f8 add missing await 2022-07-09 00:02:34 +02:00