node uptime monitor
const myMonitor = new Monitor({
website: 'https://example.com/',
title: 'Example Website',
interval: 1,
confing: {
intervalUnits: 'minutes'
},
httpOptions: {
path: '/users',
method: 'get',
},
expect: {
statusCode: 200
}
});
myMonitor.on("up", function (res, state) {
console.log(`Uptime is Running`)
})