File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def SlackAlert(msg):
25
25
"""
26
26
if VERBOSE == "enabled" :
27
27
msg = msg + " [" + time .strftime ("%Y-%m-%d %H:%M:%S" ) + "]"
28
- requests .post (config ['SLACK_STRING ' ], data = {"text" : msg })
28
+ requests .post (config ['SLACK_WEBHOOK ' ], data = {"text" : msg })
29
29
30
30
@app .route ("/webhook" , methods = ['POST' ])
31
31
def webhook ():
Original file line number Diff line number Diff line change 1
- PROJECT_PATH : ' /Users/rohitcoder/Desktop/DS-Practice/ '
2
- SLACK_STRING : ' https://hooks.slack.com/services/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 '
1
+ PROJECT_PATH : ' /home/ubuntu/MyCoolApp/ ' # Your project source code location
2
+ SLACK_WEBHOOK : ' https://hooks.slack.com/services/XXXXXX/YYYYYY/ZZZZZZZZ ' # Slack Webhook URL for getting alerts
3
3
VERBOSE : ' enabled'
You can’t perform that action at this time.
0 commit comments