Add a monitor and read the status endpoint. The examples below assume the runner is on http://localhost:8080.
monitors:
- name: my-site
url: https://example.com
interval_s: 60 # minimum 10
expected_status: [200]
keyword: "Welcome" # optional
timeout_s: 15pip install -r requirements.txt python -m watchline.runner # [watchline] watching 1 monitor(s): my-site
curl localhost:8080/status | python3 -m json.tool
# {"service": "watchline", "summary": {"total": 1, "up": 1, ...},
# "monitors": [{"name": "my-site", "status": "up",
# "latency_ms": 212.4, "uptime_pct": 100.0, ...}],
# "incidents": [...]}OPENAPI.md in the product repo.