-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_config.js
53 lines (51 loc) · 1.24 KB
/
example_config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const { checkHttpStatus, checkHeartbeat } = require('.');
const config = {
pollingCycle: 120, // in seconds
// title: 'Your custom title',
showExpanded: true,
userAgent: 'my-custom-user-agent',
groups: [
{
name: 'Google Services',
checks: [
{
name: 'Google',
checker: checkHttpStatus({
url: 'https://google.com/',
timeout: 10000,
warningTimeout: 500,
}),
},
{
name: 'Google Maps',
checker: checkHttpStatus({ url: 'https://google.com/maps' }),
},
{
name: 'Google Mail',
checker: checkHttpStatus({ url: 'https://mail.google.com/' }),
},
{
name: 'Google 404 (Should be ok)',
checker: checkHttpStatus({
url: 'https://google.com/hello-my-little-developer',
expectedHttpCode: 404,
}),
},
],
},
{
name: 'GitHub',
checks: [
{
name: 'Main page',
checker: checkHttpStatus({ url: 'https://github.com' }),
},
{
name: 'Blog',
checker: checkHttpStatus({ url: 'https://github.blog' }),
},
],
},
],
};
module.exports = config;