node uptime monitor

Solutions on MaxInterview for node uptime monitor by the best coders in the world

showing results for - "node uptime monitor"
Jean-Baptiste
18 Jun 2019
1const myMonitor = new Monitor({
2    website: 'https://example.com/',
3    title: 'Example Website',
4    interval: 1,
5    confing: {
6        intervalUnits: 'minutes'
7    },
8    httpOptions: {
9        path: '/users',
10        method: 'get',
11    },
12    expect: {
13        statusCode: 200
14    }
15});
16myMonitor.on("up", function (res, state) {
17    console.log(`Uptime is Running`)
18})
queries leading to this page
nodejs uptime monitornode uptime monitor