MetadataPlugs.Health (metadata_plugs v0.3.3)
This plug provides a health endpoint.
The purpose of this endpoint is send a heartbeat response when the server is up.
Options
The plug listens by default the /health
endpoint. See opts/0
for more
info.
Request
The configured endpoint should be called via an HTTP/GET
request.
When this endpoint is called, the server responds with an HTTP 200 OK
containing the following body:
{"status": "up"}
Summary
Functions
Resolves a health request.
Types
@type opts() :: [{:path, String.t()}]
Plug options:
path
: The health endpoint path, defaults to/health
.
Functions
@spec call(Plug.Conn.t(), Plug.opts()) :: Plug.Conn.t()
Resolves a health request.