| | |
| | | import java.util.Map; |
| | | import org.springframework.web.servlet.mvc.method.annotation.SseEmitter; |
| | | |
| | | /** 提供测试控制台的双状态实时事实与鉴权 SSE。 */ |
| | | /** 分别提供测试、接收及设备实时事实与鉴权 SSE。 */ |
| | | public interface ITestLiveService |
| | | { |
| | | /** 返回指定测试及其绑定来源的最新设备、接收和测试状态。 */ |
| | |
| | | |
| | | /** 打开实时 SSE;连接初次发送当前事实,后续只推送最新快照。 */ |
| | | SseEmitter stream(Long testId); |
| | | /** 当前观测快照;updatedAt 为毫秒时间戳,不代表历史数据已完整接收。 */ |
| | | record LiveState(Long testId, String testStatus, String receptionStatus, long updatedAt, |
| | | List<LiveSource> sources, List<Map<String, Object>> exceptions, TestPlanSnapshot testPlan) |
| | | { |