Macaw.Host.Health.Plug (macaw_host v0.1.4)

Copy Markdown View Source

Serves an app's health report as JSON: 200 when healthy, 503 when not.

get "/healthz", Macaw.Host.Health.Plug, report: {MyApp.Health, :report, []}

or as a plug in an endpoint, answering only its :path (default /healthz) and passing every other request on.