diff options
author | anweshadas <anwesha@das.community> | 2022-05-09 10:07:46 +0200 |
---|---|---|
committer | anweshadas <anwesha@das.community> | 2022-05-09 10:07:46 +0200 |
commit | 835f32e4fab84cdcfeed470d3f55aaf0313ffb58 (patch) | |
tree | 281e38efc986c03eaa90c4ec9dc2c48b5ee3bf18 /scripts | |
parent | b4b4730df217f600ff4b5203fa23c25e3168bde9 (diff) |
Adds the initial python script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/monitor.py | 17 |
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.") |