Fix message contents

This commit is contained in:
Scott Wallace 2020-10-23 10:42:55 +01:00
parent 12b39b1c08
commit 71494cdc0e

View file

@ -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': {