Health check
curl --request GET \
--url https://my.server.express/api/v1/healthconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/health"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"ok": true,
"uptime": 123
}
}Health
Health check
Is the HTTP server up with its routes registered? Deliberately doesn’t touch the database, so a database blip doesn’t get every container killed by the orchestrator.
GET
/
v1
/
health
Health check
curl --request GET \
--url https://my.server.express/api/v1/healthconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/health"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"ok": true,
"uptime": 123
}
}