From 71494cdc0eed01afaaa684bc9aeba02832aa99ca Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 23 Oct 2020 10:42:55 +0100 Subject: [PATCH] Fix message contents --- alertify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alertify.py b/alertify.py index 2d177b4..a4733be 100644 --- a/alertify.py +++ b/alertify.py @@ -193,11 +193,11 @@ class HTTPHandler(SimpleHTTPRequestHandler): gotify_msg = { 'title': '{}: {}'.format( prefix, - alert['annotations'].get('description', '[nodata]'), + alert['annotations'].get('summary'), ), 'message': '{}: {}'.format( alert['labels'].get('instance', '[unknown]'), - alert['annotations'].get('summary'), + alert['annotations'].get('description', '[nodata]'), ), 'priority': int(alert['labels'].get('priority', 5)), 'extras': {