alertmanager/notify
Anton Tolchanov 94625df2b2
Treat error response payloads from Slack as errors (#3121)
As described in the "More error types" section below, Slack API can return
errors with a 200 response code:
https://slack.dev/node-slack-sdk/web-api#handle-errors

This change adds parsing of API response to extract error messages.

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-08-10 10:59:13 +01:00
..
discord
email feat: add template.FromGlobsWithAdditionalFuncs (#3174) 2022-12-16 10:13:13 -04:00
msteams Add msteams (#3324) 2023-06-08 11:27:56 -04:00
opsgenie add reason code to notifiers (#3307) 2023-04-07 17:05:17 +02:00
pagerduty add reason code to notifiers (#3307) 2023-04-07 17:05:17 +02:00
pushover Add support for pushover devices (#3318) 2023-05-05 13:04:47 +01:00
slack Treat error response payloads from Slack as errors (#3121) 2023-08-10 10:59:13 +01:00
sns add status code label to the numTotalFailedNotifications metric (#3094) 2023-02-03 12:09:21 +00:00
telegram Support loading Telegram bot token from file 2023-01-22 16:35:01 +03:00
test feat: add template.FromGlobsWithAdditionalFuncs (#3174) 2022-12-16 10:13:13 -04:00
victorops add reason code to notifiers (#3307) 2023-04-07 17:05:17 +02:00
webex Remove the dedicated field to APIURL in favour of the configuration one 2022-12-15 11:51:45 -04:00
webhook notify/webhook: trim space from url_file content 2023-05-16 13:30:06 +02:00
wechat fix wechat notifier response field name (#3330) 2023-04-28 12:40:49 +01:00
notify.go Log the GroupKey and alerts in retry (#3438) 2023-08-07 11:31:28 +01:00
notify_test.go add status code label to the numTotalFailedNotifications metric (#3094) 2023-02-03 12:09:21 +00:00
util.go add status code label to the numTotalFailedNotifications metric (#3094) 2023-02-03 12:09:21 +00:00
util_test.go Use the new truncation in bytes functions to ensure strings are not butchered 2022-11-11 15:15:09 +00:00