add a ping service (#372)

* add a ping service

* add examples and public api file

* add minecraft server ping
This commit is contained in:
Asim Aslam
2022-02-14 15:05:28 +00:00
committed by GitHub
parent f21a6b577b
commit 420f0706b0
28 changed files with 1590 additions and 1 deletions

36
ping/examples.json Normal file
View File

@@ -0,0 +1,36 @@
{
"ip": [{
"title": "Ping an ip",
"description": "Ping an ip address to get the latency",
"run_check": false,
"request": {
"google.com"
},
"response": {
"status": "OK"
}
}],
"tcp": [{
"title": "Dial a tcp address",
"description": "Dial a tcp address",
"run_check": false,
"request": {
"google.com:80"
},
"response": {
"status": "OK"
}
}],
"http": [{
"title": "Check a url",
"description": "Check a url endpoint",
"run_check": false,
"request": {
"google.com"
},
"response": {
"status": "200 OK",
"code": 200
}
}]
}