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

1745
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

6
package.json Normal file
View File

@@ -0,0 +1,6 @@
{
"dependencies": {
"grunt": "^1.6.2",
"grunt-version": "^3.0.2"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "TellMe Server",
"version": "2.1.0",
"version": "2.1.1",
"description": "TellMe Server",
"scripts": {
"dev": "webpack-dev-server --inline --hot"

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')))