store only status-change events; UI client-side polling refactor
This commit is contained in:
@@ -35,7 +35,7 @@ async def test_incident_key_too_long(app_client, auth_headers):
|
||||
@pytest.mark.asyncio
|
||||
async def test_events_query_cursor_pagination(app_client, auth_headers):
|
||||
await app_client.post("/api/v1/heartbeat", json=make_heartbeat(), headers=auth_headers)
|
||||
evs = [make_event() for _ in range(5)]
|
||||
evs = [make_event(check_id=f"chk-{i}") for i in range(5)]
|
||||
await app_client.post(
|
||||
"/api/v1/events", json={"agent_id": "agent-1", "events": evs}, headers=auth_headers
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user