beautify rocketchat messages
This commit is contained in:
parent
846db89950
commit
080db854d1
1 changed files with 1 additions and 1 deletions
|
|
@ -30,9 +30,9 @@ def postAlertmanager(chatName):
|
||||||
message += ":warning: "
|
message += ":warning: "
|
||||||
else:
|
else:
|
||||||
message += ":white_check_mark: "
|
message += ":white_check_mark: "
|
||||||
|
message += " [**"+alert['status']+"**] "
|
||||||
if 'description' in alert['annotations']:
|
if 'description' in alert['annotations']:
|
||||||
message += alert['annotations']['description']
|
message += alert['annotations']['description']
|
||||||
message += " **"+alert['status']+"** "
|
|
||||||
if alert['status'] == "firing":
|
if alert['status'] == "firing":
|
||||||
message += "@here"
|
message += "@here"
|
||||||
message += "\n"
|
message += "\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue