Implement interval + Add timestamp to Result struct
This commit is contained in:
22
README.md
22
README.md
@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user