Alerting: Add configurable severity support for PagerDuty notifier (#19425)

* Pagerduty notifier: configurable severity

Instead of hardcoding `critical` make it configurable per notification channel instance.

* fix html

* Add a test to ensure default severity is correct

* Notifications doc

* Add a non-default test

* Add err check on NewJson (all tests)

* Add default severity (critical) to AlertNotificationEditCtrl class
This commit is contained in:
Zach Bagnall
2019-12-24 00:32:05 -07:00
committed by Sofia Papagiannaki
parent 8740c66218
commit d0360de8f1
4 changed files with 51 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ export class AlertNotificationEditCtrl {
settings: {
httpMethod: 'POST',
autoResolve: true,
severity: 'critical',
uploadImage: true,
},
isDefault: false,