Handle SNS cloudwatch alarm states with colors

This commit is contained in:
Abel Luck 2022-11-30 16:05:39 +00:00
parent 5ecb68f2e7
commit 08f5b49b16
3 changed files with 21 additions and 11 deletions

View file

@ -1,6 +1,4 @@
def urgency_color(urgency: str) -> str:
if urgency == "high":
return "#dc3545" # red
else:
return "#ffc107" # orange
# return "#17a2b8" # blue
COLOR_OK = "#33cc33" # green
COLOR_ALARM = "#dc3545" # red
COLOR_UNKNOWN = "#ffc107" # orange
COLOR_INFO = "#17a2b8" # blue