feat(ui): live host row update via SSE without full reload
On new ingest, patch visible host from GET /hosts/{id}; SAC 0.8.1.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -214,6 +214,10 @@ export function fetchHost(id: number): Promise<HostDetail> {
|
||||
return apiFetch<HostDetail>(`/api/v1/hosts/${id}`);
|
||||
}
|
||||
|
||||
export function fetchRecentEvents(limit = 1): Promise<EventSummary[]> {
|
||||
return apiFetch<EventSummary[]>(`/api/v1/dashboards/recent-events?limit=${limit}`);
|
||||
}
|
||||
|
||||
export interface HostListResponse {
|
||||
items: HostSummary[];
|
||||
total: number;
|
||||
|
||||
Reference in New Issue
Block a user