forked from checkly/danube-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkly.config.ts
90 lines (86 loc) · 2.9 KB
/
checkly.config.ts
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { defineConfig } from 'checkly'
import { Frequency } from 'checkly/constructs'
import { WebhookAlertChannel } from 'checkly/constructs'
export const webhookChannel = new WebhookAlertChannel('webhook-239286', {
name: 'srebot-prod-webhook',
method: 'POST',
url: new URL('https://srebot-zys7.onrender.com/checkly-webhook'),
sendRecovery: false,
sendFailure: false,
sendDegraded: false,
sslExpiry: false,
template: `{
"CHECK_NAME": "{{ CHECK_NAME }}",
"CHECK_ID": "{{ CHECK_ID }}",
"CHECK_TYPE": "{{ CHECK_TYPE }}",
"GROUP_NAME": "{{ GROUP_NAME }}",
"ALERT_TITLE": "{{ ALERT_TITLE }}",
"ALERT_TYPE": "{{ ALERT_TYPE }}",
"CHECK_RESULT_ID": "{{ CHECK_RESULT_ID }}",
"RESPONSE_TIME": "{{ RESPONSE_TIME }}",
"API_CHECK_RESPONSE_STATUS_CODE": "{{ API_CHECK_RESPONSE_STATUS_CODE }}",
"API_CHECK_RESPONSE_STATUS_TEXT": "{{ API_CHECK_RESPONSE_STATUS_TEXT }}",
"RUN_LOCATION": "{{ RUN_LOCATION }}",
"RESULT_LINK": "{{ RESULT_LINK }}",
"SSL_DAYS_REMAINING": "{{ SSL_DAYS_REMAINING }}",
"SSL_CHECK_DOMAIN": "{{ SSL_CHECK_DOMAIN }}",
"STARTED_AT": "{{ STARTED_AT }}",
"TAGS": "{{ TAGS }}",
"$RANDOM_NUMBER": "{{ $RANDOM_NUMBER }}",
"$UUID": "{{ $UUID }}",
"moment": "{{ moment }}"
}`,
})
export const webhookChannellocal = new WebhookAlertChannel('webhook-2392868', {
name: 'srebot-prod-webhook-local',
method: 'POST',
url: new URL('https://cd97-62-96-56-52.ngrok-free.app/checkly-webhook'),
sendRecovery: false,
sendFailure: false,
sendDegraded: false,
sslExpiry: false,
template: `{
"CHECK_NAME": "{{ CHECK_NAME }}",
"CHECK_ID": "{{ CHECK_ID }}",
"CHECK_TYPE": "{{ CHECK_TYPE }}",
"GROUP_NAME": "{{ GROUP_NAME }}",
"ALERT_TITLE": "{{ ALERT_TITLE }}",
"ALERT_TYPE": "{{ ALERT_TYPE }}",
"CHECK_RESULT_ID": "{{ CHECK_RESULT_ID }}",
"RESPONSE_TIME": "{{ RESPONSE_TIME }}",
"API_CHECK_RESPONSE_STATUS_CODE": "{{ API_CHECK_RESPONSE_STATUS_CODE }}",
"API_CHECK_RESPONSE_STATUS_TEXT": "{{ API_CHECK_RESPONSE_STATUS_TEXT }}",
"RUN_LOCATION": "{{ RUN_LOCATION }}",
"RESULT_LINK": "{{ RESULT_LINK }}",
"SSL_DAYS_REMAINING": "{{ SSL_DAYS_REMAINING }}",
"SSL_CHECK_DOMAIN": "{{ SSL_CHECK_DOMAIN }}",
"STARTED_AT": "{{ STARTED_AT }}",
"TAGS": "{{ TAGS }}",
"$RANDOM_NUMBER": "{{ $RANDOM_NUMBER }}",
"$UUID": "{{ $UUID }}",
"moment": "{{ moment }}"
}`,
})
export default defineConfig({
projectName: 'Website Monitoring',
logicalId: 'website-monitoring-1',
repoUrl: 'https://github.com/acme/website',
checks: {
alertChannels: [webhookChannel, webhookChannellocal],
activated: true,
muted: false,
runtimeId: '2022.10',
frequency: Frequency.EVERY_5M,
locations: ['us-east-1', 'eu-west-1'],
tags: ['website', 'api', 'srebot'],
checkMatch: '**/__checks__/**/*.check.ts',
ignoreDirectoriesMatch: [],
browserChecks: {
frequency: Frequency.EVERY_10M,
testMatch: '**/__checks__/**/*.spec.ts',
},
},
cli: {
runLocation: 'eu-west-1',
}
})