-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts.example
59 lines (57 loc) · 1.16 KB
/
config.ts.example
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
import { JsonCheck, RegexpCheck } from "./src/types";
const config: (RegexpCheck | JsonCheck)[] = [
{
name: "Check 1",
url: "http://localhost:3000/",
cronTime: "0 10 * * *",
type: 'regexp',
regexps: [
{
regexp: new RegExp(/Unwanted text/),
message: "There is Unwanted text in page",
},
{
regexp: new RegExp(/^(?!.*Required text).+$/, 's'),
message: "There is no Required text in page",
},
],
},
{
name: "Check 2",
url: "http://localhost:3001/",
cronTime: "0 10 * * *",
type :'json',
jsonProperties: [
{
property: 'test',
value: {
type: 'number',
value: 1,
modifier: 'greaterthan',
},
},
{
property: 'test2',
value: {
type: 'regexp',
value: new RegExp(/error/),
},
},
{
property: 'test3',
value: {
type: 'string',
value: 'success',
},
},
{
property: 'test4',
value: {
type: 'boolean',
value: true,
},
},
],
},
];
export default config;