mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-23 05:31:20 +01:00
Minor update
This commit is contained in:
parent
f98c60467d
commit
5803dca3a5
@ -43,7 +43,7 @@ Note that you can also add environment variables in the your configuration file
|
|||||||
|
|
||||||
Here are some examples of conditions you can use:
|
Here are some examples of conditions you can use:
|
||||||
|
|
||||||
| Condition | Description | Values that would pass | Values that would fail |
|
| Condition | Description | Passing values | Failing values |
|
||||||
| ------------------------------------- | ----------------------------------------- | ------------------------ | ----------------------- |
|
| ------------------------------------- | ----------------------------------------- | ------------------------ | ----------------------- |
|
||||||
| `[STATUS] == 200` | Status must be equal to 200 | 200 | 201, 404, 500 |
|
| `[STATUS] == 200` | Status must be equal to 200 | 200 | 201, 404, 500 |
|
||||||
| `[STATUS] < 300` | Status must lower than 300 | 200, 201, 299 | 301, 302, 400, 500 |
|
| `[STATUS] < 300` | Status must lower than 300 | 200, 201, 299 | 301, 302, 400, 500 |
|
||||||
@ -51,7 +51,9 @@ Here are some examples of conditions you can use:
|
|||||||
| `[STATUS] > 400` | Status must be greater than 400 | 401, 402, 403, 404 | 200, 201, 300, 400 |
|
| `[STATUS] > 400` | Status must be greater than 400 | 401, 402, 403, 404 | 200, 201, 300, 400 |
|
||||||
| `[RESPONSE_TIME] < 500` | Response time must be below 500ms | 100ms, 200ms, 300ms | 500ms, 1500ms |
|
| `[RESPONSE_TIME] < 500` | Response time must be below 500ms | 100ms, 200ms, 300ms | 500ms, 1500ms |
|
||||||
| `[BODY] == 1` | The body must be equal to 1 | 1 | literally anything else |
|
| `[BODY] == 1` | The body must be equal to 1 | 1 | literally anything else |
|
||||||
| (beta) `[BODY].data.id == 1` | The jsonpath `$.data.id` is equal to 1 | `{"data":{"id":1}}` | literally anything else |
|
| `[BODY].data.id == 1` | The jsonpath `$.data.id` is equal to 1 | `{"data":{"id":1}}` | literally anything else |
|
||||||
|
|
||||||
|
**NOTE**: `[BODY]` with JSON path (i.e. `[BODY].id == 1`) is currently in BETA. For the most part, the only thing that doesn't work is arrays.
|
||||||
|
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
Loading…
Reference in New Issue
Block a user