-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.yaml
84 lines (82 loc) · 1.29 KB
/
config.yaml
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
---
url: http://example.com/receive
method: PUT
header:
Accept: application/json, text/plain, */*
Referer: http://vinkdong.com/
body:
bodyone: |
{
"properties": {
"ServerIP": {
"type": "text",
"fielddata": true
}
}
}
bodytwo: |
{
"properties": {
"ServerIP": {
"type": "text",
"fielddata": true
}
}
}
log_response: false
range:
hour:
gte: 0
lte: 13
run_every:
seconds: 30
checker:
- type: json
rule:
- $.status = "green"
- $.number_of_data_nodes = 2
---
url: https://vinkdong.com/{{ .RenderRelativeTime "now-15h" "2006-01-02" }}
method: GET
header:
Accept: application/json, text/plain, */*
Referer: http://vinkdong.com/
body:
bodyone2: |
{
"properties": {
"ServerIP": {
"type": "text",
"fielddata": true
}
}
}
range:
hour:
gte: 8
lte: 13
month:
gte: 10
lte: 12
weekday:
gte: 0
lte: 5
run_every:
seconds: 30
#---
# type: database
# database:
# type: mysql
# host: 192.168.99.100
# port: 3306
# database: d01
# username: root
# password: admin
# sql:
# execute:
# - INSERT INTO t01 (name, date) VALUES ("zhans",NOW());
# query:
# run_count: 100
# run_thread: 20
#run_every:
# microsecond: 10