Skip to content

Commit

Permalink
feat: differentiate color between a new state with fewer alarms and
Browse files Browse the repository at this point in the history
a new state with no alarms

CALS-997
  • Loading branch information
sirius committed Jan 22, 2025
1 parent b11e66d commit aecb840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/slack-alarm-lambda/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def send_slack_notification(message: str, region: str, active_alarms: list[str])
if message["NewStateValue"] == "ALARM":
color = "danger"
else:
color = "good"
color = "warning" if len(active_alarms) else "good"
alarm_description = message["AlarmDescription"] or "Alarm is missing description"
attachments = [
{
Expand Down

0 comments on commit aecb840

Please sign in to comment.