refactor web pagination and add partitioned events, flap/timeout showcase agents

This commit is contained in:
Stanislav Rossovskii
2026-05-27 18:23:31 +04:00
parent d5f312f200
commit a2e88b4e76
46 changed files with 1600 additions and 742 deletions

View File

@@ -55,6 +55,24 @@ const fixtures = {
incident_key: "agent-1:load",
summary: "load high",
},
{
agent_id: "agent-1",
check_id: "agent_liveness",
status: "ok",
exit_code: 0,
last_observed_at: now,
incident_key: "agent:agent-1:liveness",
summary: "agent is alive",
},
{
agent_id: "agent-2",
check_id: "agent_liveness",
status: "critical",
exit_code: 2,
last_observed_at: now,
incident_key: "agent:agent-2:liveness",
summary: "agent is dead",
},
],
next_cursor: null,
},
@@ -122,6 +140,19 @@ const fixtures = {
output_truncated: false,
notifications_enabled: true,
},
{
event_id: "00000000-0000-7000-8000-000000000003",
agent_id: "agent-2",
check_id: "agent_liveness",
observed_at: now,
received_at: now,
status: "critical",
exit_code: 2,
duration_ms: 0,
output: "agent is dead",
output_truncated: false,
notifications_enabled: true,
},
],
next_cursor: null,
},