[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A simple project implementing a health check for testing purposes.

License

Notifications You must be signed in to change notification settings

maxwo/healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

healthcheck

Build Status Coverage Status Codacy Badge

A simple project implementing a health check for testing purposes.

Run

docker pull maxwo/healthcheck

docker run -p 8080:8080 maxwo/healthcheck

Get healthcheck state

curl http://127.0.0.1:8080/healthcheck

Set healthcheck state

curl -X PUT -H 'Content-type: application/json' -d 'true' http://127.0.0.1:8080/healthcheck

Healthcheck endpoint

curl http://127.0.0.1:8080/health

It should return a 200 OK status when healthy, otherwise, 503.