summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/monitor.py17
1 files changed, 17 insertions, 0 deletions
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.")