Update docs with timerange

This commit is contained in:
Nick Mowen 2022-06-30 09:26:33 -06:00
parent d999575832
commit 62d8b5b1a2

View File

@ -156,16 +156,18 @@ Version info
Events from the database. Accepts the following query string parameters: Events from the database. Accepts the following query string parameters:
| param | Type | Description | | param | Type | Description |
| -------------------- | ---- | --------------------------------------------- | | -------------------- | ---- | ----------------------------------------------- |
| `before` | int | Epoch time | | `before` | int | Epoch time |
| `after` | int | Epoch time | | `after` | int | Epoch time |
| `cameras` | str | , separated list of cameras | | `cameras` | str | , separated list of cameras |
| `labels` | str | , separated list of labels | | `labels` | str | , separated list of labels |
| `sub_labels` | str | Sub label name |
| `zones` | str | , separated list of zones | | `zones` | str | , separated list of zones |
| `limit` | int | Limit the number of events returned | | `limit` | int | Limit the number of events returned |
| `has_snapshot` | int | Filter to events that have snapshots (0 or 1) | | `has_snapshot` | int | Filter to events that have snapshots (0 or 1) |
| `has_clip` | int | Filter to events that have clips (0 or 1) | | `has_clip` | int | Filter to events that have clips (0 or 1) |
| `include_thumbnails` | int | Include thumbnails in the response (0 or 1) | | `include_thumbnails` | int | Include thumbnails in the response (0 or 1) |
| `time_range` | str | Time range in format after,before (00:00,24:00) |
### `GET /api/events/summary` ### `GET /api/events/summary`