fix typo
This commit is contained in:
parent
080db854d1
commit
b99410f135
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def postAlertmanager(chatName):
|
||||||
if 'description' in alert['annotations']:
|
if 'description' in alert['annotations']:
|
||||||
message += alert['annotations']['description']
|
message += alert['annotations']['description']
|
||||||
if alert['status'] == "firing":
|
if alert['status'] == "firing":
|
||||||
message += "@here"
|
message += " @here"
|
||||||
message += "\n"
|
message += "\n"
|
||||||
if 'name' in alert['labels']:
|
if 'name' in alert['labels']:
|
||||||
message += "Instance: "+alert['labels'].get('instance', 'unknown')+"("+alert['labels']['name']+")\n"
|
message += "Instance: "+alert['labels'].get('instance', 'unknown')+"("+alert['labels']['name']+")\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue