var UptimeRobotClient = require('uptimerobot-client');
var client = new UptimeRobotClient('apikey');
client.getMonitors({
logs: true,
alertContacts: true,
responseTimes: false,
responseTimesAverage: 180,
monitors: [15830, 32696],
customUptimeRatio: 30
}, function(err, response) {
// The response will be the javascript object
});
$ npm install uptimerobot-client
To run the test suite, first invoke the following command within the repo, installing the development dependencies:
$ npm install
Then run the tests:
$ npm test