grafana/pkg/services/notifications
Matthew Jacobson efa0d90093
Alerting: Fix Teams notifier not failing on 200 response with error (#52254)
Team's webhook API does not always use the status code to communicate errors.
There are cases where it returns 200 and an error message in the body.
For example, 429 - Too Many Requests or when the message is too large.
Instead, what we should be looking for is a response body = "1".

https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL#send-messages-using-curl-and-powershell
2022-07-14 13:15:18 -04:00
..
codes_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
codes.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
email.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
mailer.go Alerting: Add abstraction layer and testing hooks in front of SMTP dialer (#43875) 2022-01-13 15:19:15 -06:00
mock.go Remove bus from org invite api (#44530) 2022-01-31 17:24:52 +01:00
notifications_test.go Split Create User (#50502) 2022-06-28 14:32:25 +02:00
notifications.go Alerting: Fix Teams notifier not failing on 200 response with error (#52254) 2022-07-14 13:15:18 -04:00
send_email_integration_test.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
smtp_test.go Alerting: Add abstraction layer and testing hooks in front of SMTP dialer (#43875) 2022-01-13 15:19:15 -06:00
smtp.go Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
testing.go Alerting: Fix Teams notifier not failing on 200 response with error (#52254) 2022-07-14 13:15:18 -04:00
webhook.go Alerting: Fix Teams notifier not failing on 200 response with error (#52254) 2022-07-14 13:15:18 -04:00