File tree 3 files changed +45
-7
lines changed
3 files changed +45
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ npm install -g sky-puppy
15
15
sky-puppy
16
16
```
17
17
18
+ ## Checkers
19
+
20
+ ##### Test
21
+ - [sky-puppy-checker-template](https://github.com/Phara0h/sky-puppy-checker-template) : A Sky Puppy template to use to create your own checkers
22
+
23
+ ##### HTTP/HTTPS
24
+ - request (native)
25
+
26
+
18
27
## Sample Config
19
28
20
29
Sky Puppy looks for a file called `sky-puppy-config.json` in the folder it is ran at.
Original file line number Diff line number Diff line change 36
36
"nstats" : " ^4.1.2"
37
37
},
38
38
"devDependencies" : {
39
+ "auto-changelog" : " ^2.2.0" ,
39
40
"eslint" : " ^7.8.1" ,
40
41
"eslint-config-prettier" : " ^6.11.0" ,
41
42
"eslint-plugin-prettier" : " ^3.1.4" ,
42
- "prettier" : " ^2.0.5" ,
43
- "prettier-eslint" : " ^11.0.0" ,
44
43
"jsdoc-to-markdown" : " ^6.0.1" ,
45
- "auto-changelog" : " ^2.2.0" ,
46
44
"mdsquash" : " ^1.0.5" ,
47
- "postgen" : " ^4.6.0"
45
+ "postgen" : " ^4.6.0" ,
46
+ "prettier" : " ^2.0.5" ,
47
+ "prettier-eslint" : " ^11.0.0" ,
48
+ "sky-puppy-checker-template" : " ^1.0.1"
48
49
}
49
50
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "checkers" : {
3
+ "request" : {},
4
+ "sky-puppy-checker-template" : {
5
+ "foo" : " bar"
6
+ }
7
+ },
2
8
"alerters" : {
3
9
"discord_down" : {
4
10
"uri" : " http://127.0.0.1:4270/alert/test" ,
139
145
"alerter" : " discord_healthy"
140
146
}
141
147
]
148
+ },
149
+ "sky-puppy-checker-template-test" : {
150
+ "interval" : 2 ,
151
+ "checker" : {
152
+ "name" : " sky-puppy-checker-template" ,
153
+ "settings" : {
154
+ "bar" : " test"
155
+ }
156
+ },
157
+ "expected_response_time" : 500 ,
158
+ "alerts" : [
159
+ {
160
+ "type" : " down" ,
161
+ "alerter" : " discord_down"
162
+ },
163
+ {
164
+ "type" : " unhealthy_response_time" ,
165
+ "for" : 1 ,
166
+ "alerter" : " discord_unhealthy"
167
+ },
168
+ {
169
+ "type" : " healthy" ,
170
+ "alerter" : " discord_healthy"
171
+ }
172
+ ]
142
173
}
143
174
},
144
175
"skypuppy" : {
145
176
"version" : " 1.0.0"
146
- },
147
- "checkers" : {
148
- "request" : {}
149
177
}
150
178
}
You can’t perform that action at this time.
0 commit comments