alertmanager/notify
shamilpd d8ad30179a
Enforce 512KB event size limit for Pagerduty events (#2225)
* Enforce 512kb event size limit for Pagerduty

Signed-off-by: Shamil Ishraq <shamil@pagerduty.com>

* Add size limit to error message

Signed-off-by: Shamil Ishraq <shamil@pagerduty.com>

* Replace MaxEventSize setting with a const.

Signed-off-by: Shamil Ishraq <shamil@pagerduty.com>

* Change to package variable

Signed-off-by: Shamil Ishraq <shamil@pagerduty.com>

* Removed recursion in encodeMessage()

Signed-off-by: Shamil Ishraq <shamil@pagerduty.com>

* Unexport maxEventSize

Signed-off-by: Shamil Ishraq <shamil@pagerduty.com>
2020-05-15 15:15:18 +02:00
..
email Add email notify Message-Id Header (#2057) 2019-10-23 15:49:30 +02:00
hipchat Bump prometheus/client_golang to v1.1.0 (#1989) 2019-08-08 14:36:10 +02:00
opsgenie Bump prometheus/client_golang to v1.1.0 (#1989) 2019-08-08 14:36:10 +02:00
pagerduty Enforce 512KB event size limit for Pagerduty events (#2225) 2020-05-15 15:15:18 +02:00
pushover Bump prometheus/client_golang to v1.1.0 (#1989) 2019-08-08 14:36:10 +02:00
slack Add slack channel when logging error. (#2177) 2020-02-05 09:17:15 +01:00
test *: split notify package 2019-06-18 15:36:19 +02:00
victorops Bump prometheus/client_golang to v1.1.0 (#1989) 2019-08-08 14:36:10 +02:00
webhook Bump prometheus/client_golang to v1.1.0 (#1989) 2019-08-08 14:36:10 +02:00
wechat notify/wechat: adjust result check sequence. (#2044) 2019-09-23 09:31:57 +02:00
notify_test.go notify: don't use the global metrics registry (#1977) 2019-08-26 16:37:13 +02:00
notify.go notify: add retry field to debug log (#2188) 2020-03-13 15:39:16 +01:00
util_test.go notify: refactor code to retry requests (#1974) 2019-08-02 16:17:40 +02:00
util.go notify: refactor code to retry requests (#1974) 2019-08-02 16:17:40 +02:00