Add support for headers, method, body and json path with arrays

This commit is contained in:
TwinProduction
2020-04-14 19:20:00 -04:00
parent 88d0d8a724
commit fe3e60dbd4
14 changed files with 531 additions and 234 deletions

View File

@ -1,14 +1,21 @@
metrics: true
services:
- name: Twinnation
url: https://twinnation.org/health
# - name: twinnation
# interval: 10s
# url: https://twinnation.org/health
# conditions:
# - "[STATUS] == 200"
# - "[RESPONSE_TIME] < 1000"
# - "[BODY].status == UP"
- name: twinnation-articles-api
interval: 10s
url: https://twinnation.org/api/v1/articles
conditions:
- "[STATUS] == 200"
- "[RESPONSE_TIME] < 500"
- "[BODY].status == UP"
- name: Example
url: https://example.org/
interval: 30s
conditions:
- "[STATUS] == 200"
- "[BODY].[0].id == 42"
# - name: example
# url: https://example.org/
# interval: 30s
# conditions:
# - "[STATUS] == 200"