From 835f32e4fab84cdcfeed470d3f55aaf0313ffb58 Mon Sep 17 00:00:00 2001 From: anweshadas Date: Mon, 9 May 2022 10:07:46 +0200 Subject: Adds the initial python script --- scripts/monitor.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/monitor.py (limited to 'scripts') diff --git a/scripts/monitor.py b/scripts/monitor.py new file mode 100755 index 0000000..b242c0e --- /dev/null +++ b/scripts/monitor.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +import requests + +links = [ + "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-tree-head-cosigned", + "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-tree-head-to-cosign", + "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-leaves/0/1", + "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-consistency-proof/1/3", +] + +for url in links: + response = requests.get(url) + if response.status_code != 200: + print(f"{url} is not returing 200.") + else: + print(f"{url} is working.") -- cgit v1.2.3