Files
ANSCORE/docs/diagrams/06-seq-live-events.puml
T
2026-06-12 14:13:26 +10:00

37 lines
1.0 KiB
Plaintext

@startuml 06-seq-live-events
title Sequence — Live event tail + clicking into evidence
actor "Operator" as User
participant "Qt UI" as UI
participant "ANSVIS\n/api/v1" as API
participant "SSE broadcaster" as SSE
participant "Clip store\n(S3 / MinIO / FS)" as CLIPS
participant "L1 edge" as EDGE
User -> UI : Open Eventview (task=456)
UI -> API : GET /events?task_id=456&page=1
API --> UI : 200 historical events
UI -> API : GET /events/stream?task_id=456
API --> UI : text/event-stream (open)
EDGE -> API : event arrives (via L1↔L2)
API -> SSE : push EventRecord
SSE --> UI : data: {id:E1, ts, object:car, bbox, ...}
User -> UI : Click event E1
UI -> API : GET /events/E1
API --> UI : 200 EventRecord (full)
UI -> API : GET /events/E1/image?width=640
API --> UI : image/jpeg bytes
User -> UI : Play clip
UI -> API : GET /events/E1/clip
API -> CLIPS : presign GET
CLIPS --> API : presigned URL
API --> UI : 200 {url, expires_at}
UI -> CLIPS : GET <presigned URL>
CLIPS --> UI : MP4 bytes
UI -> UI : play in QtMultimedia
@enduml