Cast by arfonzo

Show the cast this replies to

If you're testing from AUS, that could look reasonable, yeah! ``` arfonzo@rpi5 ~> curl -sS -o /dev/null -w 'HTTP: %{http_code} | DNS: %{time_namelookup}s | TCP: %{time_connect}s | TLS: %{time_appconnect}s | TTFB: %{time_starttransfer}s | Total: %{time_total}s\n' hypersnap.imgnai.com/v1/info HTTP: 200 | DNS: 0.002495s | TCP: 0.084490s | TLS: 0.180091s | TTFB: 0.646054s | Total: 0.646116s ``` (TTFB: time to first byte, just extra data in case you're interested, not really needed here for our discussion.) So you can probably do a combination of rules here. If you get a 200 OK response from the `/v1/info` endpoint, that is a good indication that it's up. Then you break it down into two data points from this: - online status: up from the HTTP 200 OK response. - latency: take TCP connect time: 84ms If it's down (no response from endpoint), forget the latency and just report it as offline. That's just one way to do it!

0 likes0 recasts0 replies

0 replies

No replies yet