From 7087e33a90e3b0b50d9ab4b18b78677c20d48b1a Mon Sep 17 00:00:00 2001 From: sij Date: Tue, 8 Oct 2024 06:44:20 +0200 Subject: [PATCH] Delete ison --- ison | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 ison diff --git a/ison b/ison deleted file mode 100755 index 323a7f9..0000000 --- a/ison +++ /dev/null @@ -1,29 +0,0 @@ -#!/Users/sij/miniforge3/envs/sijapi/bin/python - -import requests - -def check_health(url): - try: - response = requests.get(url) - if response.status_code == 200: - return f"{url} is up" - else: - return f"{url} returned status code {response.status_code}" - except requests.exceptions.RequestException: - return f"{url} is down" - -def main(): - addresses = [ - "http://localhost:4444/health", - "http://100.64.64.20:4444/health", - "http://100.64.64.30:4444/health", - "http://100.64.64.11:4444/health", - "http://100.64.64.15:4444/health" - ] - - for address in addresses: - print(check_health(address)) - -if __name__ == "__main__": - main() -