From 3de1dba03dd298207a40ee501db9f4409abd3f54 Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 7 Oct 2018 16:13:50 -0500 Subject: [PATCH] remove unnecessary file post consolidation. --- gateway.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 gateway.py diff --git a/gateway.py b/gateway.py deleted file mode 100644 index cf4758b..0000000 --- a/gateway.py +++ /dev/null @@ -1,20 +0,0 @@ -import json, datetime, os - -""" -basically read a log file, -if what is being read contains a WARN: - Look at timestamp, target, - if more > 1 consecutive timestamp with the same target: - send to slack - -""" -results = [] -with open("results.json", "r") as json_File: - for line in json_File: - results.append(json.loads(line)) - -for key,value in results[-1].items(): - if value != 200: - errorFile = open("errors.log", "w") - errorText = key + " is down." + "\n" - errorFile.write(errorText) \ No newline at end of file