Alerting: Add CustomDetails field in PagerDuty contact point (#64860)

* Alerting: Add CustomDetails for PagerDuty

* fix default value for 'severity' from 'error' to 'critical'

* minimal docs for notifiers, specifying config for PagerDuty

* replace notifier -> integration

* replace notifier -> integration
This commit is contained in:
Santiago
2023-03-29 10:35:01 -03:00
committed by GitHub
parent b01194f81e
commit 7b92849508
4 changed files with 86 additions and 8 deletions

View File

@@ -295,8 +295,8 @@ func GetAvailableNotifiers() []*NotifierPlugin {
Label: "Severity",
Element: ElementTypeInput,
InputType: InputTypeText,
Placeholder: "error",
Description: "Severity of the event. It must be critical, error, warning, info - otherwise, the default is set which is error. You can use templates",
Placeholder: "critical",
Description: "Severity of the event. It must be critical, error, warning, info - otherwise, the default is set which is critical. You can use templates",
PropertyName: "severity",
},
{ // New in 8.0.
@@ -353,6 +353,13 @@ func GetAvailableNotifiers() []*NotifierPlugin {
Placeholder: "{{ .ExternalURL }}",
PropertyName: "client_url",
},
{ // New in 9.5.
Label: "Details",
Description: "A set of arbitrary key/value pairs that provide further detail about the incident.",
Element: ElementTypeKeyValueMap,
InputType: InputTypeText,
PropertyName: "details",
},
},
},
{