We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9be320 commit 48c1dc5Copy full SHA for 48c1dc5
pkg/alertsender/slack/slack.go
@@ -73,15 +73,17 @@ func (s slack) Send(alert alertsender.Alert) error {
73
switch alert.Severity {
74
case alertsender.Medium:
75
color = "warning"
76
- case alertsender.Critical:
+ case alertsender.Critical, alertsender.High:
77
color = "danger"
78
default:
79
color = "good"
80
}
81
82
+ text := fmt.Sprintf("%s\n%s", alert.Title, alert.Text)
83
+
84
attach := attachment{
- Fallback: alert.Text,
- Text: alert.Text,
85
+ Fallback: text,
86
+ Text: text,
87
Color: color,
88
Mdin: []string{"text"},
89
0 commit comments