About 3 min
Python install
Copy the code below into your app and send pings on the monitor interval.
Install steps
- 1
Prepare the ping URL
Put the URL from your dashboard into the `VIBEPULSE_PING_URL` environment variable.
- 2
Paste the code
Add the code below to your main loop or server startup.
- 3
Match the interval
Set the sleep/interval in code to match your monitor check interval.
- 4
Deploy and verify
After deploy, check that the last ping time updates on the dashboard.
Code
Python install
import os
import time
import httpx
PING_URL = os.environ["VIBEPULSE_PING_URL"]
INTERVAL_SEC = 600 # match your monitor interval
def ping_vibepulse() -> None:
httpx.get(PING_URL, timeout=10.0).raise_for_status()
while True:
ping_vibepulse()
time.sleep(INTERVAL_SEC)