Add asset host logs ingest and UI

This commit is contained in:
Mikhail Chusavitin
2026-03-15 21:38:20 +03:00
parent 5370c1a698
commit f4cd15f0c4
19 changed files with 1374 additions and 222 deletions

View File

@@ -25,11 +25,17 @@ Registry invariants:
- `POST /ingest/hardware`
- `POST /ingest/manual/csv`
- `GET /ingest/manual/csv/jobs/{id}`
- `GET /api/assets/{asset_id}/logs`
- returns deduplicated asset event logs (`host`, `bmc`, `redfish`) with filters by source, severity, activity state, and date range
Manual CSV ingest contract:
- `POST /ingest/manual/csv` is asynchronous and returns `202 Accepted` with `job_id`.
- Final result is read from `GET /ingest/manual/csv/jobs/{id}`.
Hardware ingest notes:
- `POST /ingest/hardware` may accept optional `event_logs` inside the snapshot payload.
- `event_logs` are persisted into dedicated asset log storage and are not mapped to history/timeline events.
## Timeline
- `GET /assets/{id}/timeline`