Liveness probe
GET
/health
const url = 'https://example.com/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/healthPublic. Returns { ok: true } when the process is reachable.
Responses
Section titled “Responses”Alive.
Media typeapplication/json
object
ok
required
boolean
Example
{ "ok": true}