iloire / watchmen

A simple node.js service monitor
MIT License
941 stars 195 forks source link

Better outage notification emails #38

Open iloire opened 9 years ago

zarzen commented 8 years ago

We simply customize like this when outage happens: var error = JSON.parse(JSON.stringify(outage.error)); so, here we need to put some useful information when ping is failed, like this:

var error = {"code":"xxx", "message":err.message};
callback(error, "failed", "failed", time);

But this feature seems should be done in the plugin and ping-service projects?