mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-06 06:21:36 +01:00
fix: remove obsolete grafana route
This commit is contained in:
13
interface.py
13
interface.py
@@ -65,19 +65,6 @@ def sendToAll():
|
||||
sendMessageToAllClients(flask.request.json["message"])
|
||||
return ("","204")
|
||||
|
||||
@app.route('/send-all-grafana', methods=["POST"])
|
||||
@login_required
|
||||
def sendToAllGrafana():
|
||||
j = flask.request.json
|
||||
state = j["state"]
|
||||
if state == "ok":
|
||||
string = "Humidity: Ok (<50%)"
|
||||
else:
|
||||
string = "Humidity: Warning (>50%)"
|
||||
|
||||
sendMessageToAllClients(string)
|
||||
return ("","204")
|
||||
|
||||
@app.route('/send-all-icinga', methods=["POST"])
|
||||
@login_required
|
||||
def sendToAllIcinga():
|
||||
|
||||
Reference in New Issue
Block a user