Slack endpoint improvements

This commit is contained in:
Alfredo Cardigliano 2021-07-22 10:47:05 +02:00
parent 3e1240015d
commit 8fc8566f2a
4 changed files with 3 additions and 7 deletions

View file

@ -124,7 +124,7 @@ function slack.dequeueRecipientAlerts(recipient, budget, high_priority)
-- Most recent notifications first
for _, notif in pairsByValues(notifications, alert_utils.notification_timestamp_rev) do
local msg = alert_utils.formatAlertNotification(notif, {nohtml=true, show_severity=false})
local msg = alert_utils.formatAlertNotification(notif, {nohtml=true, show_severity=false, show_entity=true})
table.insert(messages, msg)
if #messages >= MAX_ALERTS_PER_MESSAGE then