feat: host display_name в ingest, поиск хостов, UI и docs

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PTah
2026-05-28 11:49:10 +10:00
parent 108e1756c4
commit d4bf6e536c
8 changed files with 122 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
"""Extended /health payload for ops monitoring."""
def test_health_includes_stale_and_last_event(client, db_session, auth_headers):
r = client.get("/health")
assert r.status_code == 200
body = r.json()
assert body["database"] == "ok"
assert "hosts_stale" in body
assert "last_event_received_at" in body
assert body["service"] == "security-alert-center"