Implement interval + Add timestamp to Result struct

This commit is contained in:
TwinProduction
2019-09-08 21:07:08 -04:00
parent 8a7aa96b97
commit 825906145f
6 changed files with 60 additions and 33 deletions

View File

@ -3,15 +3,25 @@
A service health dashboard in Go
config should look something like
## Usage
```yaml
services:
- name: twinnation
- name: twinnation # Name of your service, can be anything
url: https://twinnation.org/actuator/health
interval: 10
failure-threshold: 3
interval: 15s # Duration to wait between every status check (opt. default: 10s)
failure-threshold: 3
conditions:
- "$STATUS == 200"
- "IP == 200"
```
- name: github
url: https://api.github.com/healthz
conditions:
- "$STATUS == 200"
```
## Running the tests
```
go test ./... -mod vendor
```