Answers for "node uptime monitor"

0

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`)
})
Posted by: Guest on July-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language