We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a87e95 commit 3f7b7afCopy full SHA for 3f7b7af
monitor/src/index.py
@@ -51,13 +51,15 @@ def check_site(url, metric):
51
52
if STAT != 501 and STAT ==1:
53
print('Success!')
54
- print(response.status_code)
+ print(response.elapsed.total_seconds())
55
STAT = response.status_code
56
57
return STAT
58
59
def run_thread(site):
60
r = check_site(site,metricname)
61
+ if r == 501:
62
+ r = check_site(site,metricname)
63
if r == 200 or r == 304 or r == 400:
64
print("Site %s is up" %site)
65
write_metric(200, metricname, site)
0 commit comments