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})