@dnode/health
v2.0.1
Published
[](DEPENDENCIES.md)
Readme
Provides an /health endpoint response with the health of the app in the MicroProfile format.
Usage
require('@dnode/controllers')(
app,
[
require('@dnode/health').controller({
example: () => {},
}),
]
);Example response
{
"outcome":"UP",
"checks":[
{
"name":"example",
"state":"UP",
"data":{}
}
]
}Plugins
- Check with HTTP requests:
health-got
