1.0.4 • Published 6 years ago
@dnode/health-got v1.0.4
Provides check function for health
performing HTTP requests.
Usage
require('@dnode/controllers')(
app,
[
require('@dnode/health').controller({
example: require('@dnode/health-got')('http://example.com/'),
}),
]
);
Example response
{
"outcome": "UP",
"checks": [
{
"name": "example",
"state": "UP",
"data": {
"method": "GET",
"url": "http://example.com/"
}
}
]
}