QUESTPIE Probe
Commands

qprobe health

Poll a URL until it returns a healthy response.

qprobe health

Poll a URL repeatedly until it returns the expected status code.

qprobe health <url> [options]

Flags

FlagDefaultDescription
--interval <duration>2sTime between polls
--timeout <duration>60sMax time to wait
--status <code>200Expected HTTP status code

Examples

# Wait for a server to be healthy
qprobe health http://localhost:3000/api/health

# Custom interval and timeout
qprobe health http://localhost:3000/api/health --interval 5s --timeout 120s

# Expect a different status
qprobe health http://localhost:3000/api/health --status 204

Exit Codes

  • 0 — URL returned expected status
  • 3 — Timed out waiting for healthy response

On this page