Fix message contents
This commit is contained in:
parent
12b39b1c08
commit
71494cdc0e
|
@ -193,11 +193,11 @@ class HTTPHandler(SimpleHTTPRequestHandler):
|
||||||
gotify_msg = {
|
gotify_msg = {
|
||||||
'title': '{}: {}'.format(
|
'title': '{}: {}'.format(
|
||||||
prefix,
|
prefix,
|
||||||
alert['annotations'].get('description', '[nodata]'),
|
alert['annotations'].get('summary'),
|
||||||
),
|
),
|
||||||
'message': '{}: {}'.format(
|
'message': '{}: {}'.format(
|
||||||
alert['labels'].get('instance', '[unknown]'),
|
alert['labels'].get('instance', '[unknown]'),
|
||||||
alert['annotations'].get('summary'),
|
alert['annotations'].get('description', '[nodata]'),
|
||||||
),
|
),
|
||||||
'priority': int(alert['labels'].get('priority', 5)),
|
'priority': int(alert['labels'].get('priority', 5)),
|
||||||
'extras': {
|
'extras': {
|
||||||
|
|
Loading…
Reference in a new issue