ape-status
Installation
npm install ape-status --save
Usage
Initialization
var apeStatus = ; apeStatus;
Bind to express instance
var expressApp = ; expressApp;
Info File
Add Info
apeStatus;
Save To File
apeStatus;
Add Backends
MYSQL Pool
var pool = mysql; apeStatus; // query parameter is optional
Mongoose connection
mongoose; apeStatus; // The db name will be used as the name for the status page, the colelction name is optional
Redis connection
apeStatus;
Webservice
apeStatus;
Response example
/ape/status => 200 OK (no body)
/ape/status/backends
{ MYSQL-main: { connected: true }, WEBSERVICE-googlemaps: { available: true, response_time: 57 // MS }, MONGOOSE-main: { connected: true }}