apphealthcheck
v1.0.1
Published
simple APP/API Health checks for dependency api and monitoring
Downloads
16
Maintainers
Readme
App Health Check
Simple and highly customisable JSON health check builder.
npm install apphealthcheck --save
yarn add apphealthcheck
Teams using this package:
var status = require('apphealthcheck');
var results = status({
"name": "some-app",
"env": process.env.NODE_ENV,
"build": proccess.env.BUILD_NUMBER, // jenkins
"checks": [
{
"name": "Yahoo",
"url" : "http://yahoo.com"
},
{
"name": "Google",
"url" : "http://google.com"
}
]
}).then( function(data) {
// {JSON data}
res.json(data);
});