mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
docs: Update example
This commit is contained in:
parent
4599fe4da7
commit
a81a83e2d4
@ -143,11 +143,13 @@ endpoints:
|
|||||||
- "[STATUS] == 200" # Status must be 200
|
- "[STATUS] == 200" # Status must be 200
|
||||||
- "[BODY].status == UP" # The json path "$.status" must be equal to UP
|
- "[BODY].status == UP" # The json path "$.status" must be equal to UP
|
||||||
- "[RESPONSE_TIME] < 300" # Response time must be under 300ms
|
- "[RESPONSE_TIME] < 300" # Response time must be under 300ms
|
||||||
- name: example
|
|
||||||
|
- name: make-sure-header-is-rendered
|
||||||
url: "https://example.org/"
|
url: "https://example.org/"
|
||||||
interval: 60s
|
interval: 60s
|
||||||
conditions:
|
conditions:
|
||||||
- "[STATUS] == 200"
|
- "[STATUS] == 200" # Status must be 200
|
||||||
|
- "[BODY] == pat(*<h1>Example Domain</h1>*)" # Body must contain the specified header
|
||||||
```
|
```
|
||||||
|
|
||||||
This example would look similar to this:
|
This example would look similar to this:
|
||||||
|
Loading…
Reference in New Issue
Block a user