feat: RDG session flap rule, qwinsta/logoff queue and dashboard UI (0.9.13)
Detect 302→303 within 1–10s, Problem with 30s dedup, rdg_flap flag. Agent command poll API, admin qwinsta/logoff from Overview. Migration 016.
This commit is contained in:
@@ -169,6 +169,34 @@ export interface EventSummary {
|
||||
title: string;
|
||||
summary: string;
|
||||
actor_user?: string | null;
|
||||
rdg_flap?: boolean;
|
||||
}
|
||||
|
||||
export interface AgentCommandResponse {
|
||||
command_uuid: string;
|
||||
command_type: string;
|
||||
status: string;
|
||||
result_stdout?: string | null;
|
||||
result_stderr?: string | null;
|
||||
created_at?: string | null;
|
||||
completed_at?: string | null;
|
||||
}
|
||||
|
||||
export function postEventQwinsta(eventId: number): Promise<AgentCommandResponse> {
|
||||
return apiFetch<AgentCommandResponse>(`/api/v1/events/${eventId}/actions/qwinsta`, {
|
||||
method: "POST",
|
||||
});
|
||||
}
|
||||
|
||||
export function postEventLogoff(eventId: number, sessionId: number): Promise<AgentCommandResponse> {
|
||||
return apiFetch<AgentCommandResponse>(`/api/v1/events/${eventId}/actions/logoff`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ session_id: sessionId }),
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchEventAction(eventId: number, commandUuid: string): Promise<AgentCommandResponse> {
|
||||
return apiFetch<AgentCommandResponse>(`/api/v1/events/${eventId}/actions/${commandUuid}`);
|
||||
}
|
||||
|
||||
export interface EventListResponse {
|
||||
|
||||
Reference in New Issue
Block a user