mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-23 07:57:39 +00:00
9 lines
196 B
Plaintext
9 lines
196 B
Plaintext
# Using the requests library:
|
|
import requests
|
|
|
|
try:
|
|
requests.get("PING_URL", timeout=10)
|
|
except requests.RequestException as e:
|
|
# Log ping failure here...
|
|
print("Ping failed: %s" % e)
|