fix: dashboard and hosts count SSH and RDP daily reports

analytics-a4: daily_reports_24h uses report.daily.*; sac-deploy enables timers
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PTah
2026-05-29 16:31:09 +10:00
parent 415d863b3b
commit 42f31b3bb5
7 changed files with 50 additions and 7 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ from app.database import get_db
from app.models import Event, Host
from app.schemas.list_models import HostListResponse, HostSummary
from app.services.host_health import (
DAILY_REPORT_SSH,
HEARTBEAT_TYPE,
agent_status,
max_daily_report_time_by_host,
max_event_time_by_host,
)
@@ -47,7 +47,7 @@ def list_hosts(
settings = get_settings()
hb_map = max_event_time_by_host(db, HEARTBEAT_TYPE)
report_map = max_event_time_by_host(db, DAILY_REPORT_SSH)
report_map = max_daily_report_time_by_host(db)
items: list[HostSummary] = []
for host in rows: