Put Alert number in initial message

This commit is contained in:
2026-04-22 14:16:42 +02:00
parent 6bf58f8510
commit 9e1e072620
4 changed files with 1754 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import yaml
import zmq
from pprint import pprint
__version__ = "2.1.0"
__version__ = "2.1.1"
versionstring='Taurix TellMe server v' + __version__
app = Flask(__name__)
@@ -61,7 +61,7 @@ def webhook_receiver(id):
message = ("GoAlert verification code: %s" % (data.get('Code`')))
if type == 'Alert':
message = ("%s\n%s" % (data.get('Summary'), data.get('Details')))
message = ("Alert %s: %s\n%s" % (data.get('AlertID'), data.get('Summary'), data.get('Details')))
if type == 'AlertStatus':
message = ("Alert %s: %s" % (data.get('AlertID'), data.get('LogEntry')))