Skip to content

Commit

Permalink
Added sky-puppy-checker-template to tests and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Phara0h committed Oct 30, 2020
1 parent f3f8ee5 commit a927cdf
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 7 deletions.
9 changes: 9 additions & 0 deletions README.nbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ npm install -g sky-puppy
sky-puppy
```

## Checkers

##### Test
- [sky-puppy-checker-template](https://github.com/Phara0h/sky-puppy-checker-template) : A Sky Puppy template to use to create your own checkers

##### HTTP/HTTPS
- request (native)


## Sample Config

Sky Puppy looks for a file called `sky-puppy-config.json` in the folder it is ran at.
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@
"nstats": "^4.1.2"
},
"devDependencies": {
"auto-changelog": "^2.2.0",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.0.5",
"prettier-eslint": "^11.0.0",
"jsdoc-to-markdown": "^6.0.1",
"auto-changelog": "^2.2.0",
"mdsquash": "^1.0.5",
"postgen": "^4.6.0"
"postgen": "^4.6.0",
"prettier": "^2.0.5",
"prettier-eslint": "^11.0.0",
"sky-puppy-checker-template": "^1.0.1"
}
}
34 changes: 31 additions & 3 deletions test/sky-puppy-config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"checkers": {
"request": {},
"sky-puppy-checker-template": {
"foo": "bar"
}
},
"alerters": {
"discord_down": {
"uri": "http://127.0.0.1:4270/alert/test",
Expand Down Expand Up @@ -139,12 +145,34 @@
"alerter": "discord_healthy"
}
]
},
"sky-puppy-checker-template-test": {
"interval": 2,
"checker": {
"name": "sky-puppy-checker-template",
"settings": {
"bar": "test"
}
},
"expected_response_time": 500,
"alerts": [
{
"type": "down",
"alerter": "discord_down"
},
{
"type": "unhealthy_response_time",
"for": 1,
"alerter": "discord_unhealthy"
},
{
"type": "healthy",
"alerter": "discord_healthy"
}
]
}
},
"skypuppy": {
"version": "1.0.0"
},
"checkers": {
"request": {}
}
}

0 comments on commit a927cdf

Please sign in to comment.