Initial commit - basics of checker extensions added

This commit is contained in:
askiiart 2024-01-29 10:45:39 -06:00
commit 609e4b50d5
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
4 changed files with 137 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import random
class CheckerTemplate:
def __init__(arguments):
pass
def get_status():
latency = int(random.random() * 3000)
if latency > 2500: # "simulate" a timeout
return 0
elif latency > 1000: # "simulate" a very slow application - a partial outage
return 50
else:
return 100