| | |
| | | import com.battery.device.simulator.BtsSimulatorStateStore.CollectorMetricState; |
| | | import com.battery.device.simulator.DevelopmentCollectorSimulation.CollectorRealtimeSnapshot; |
| | | |
| | | /** 本机临时 BTS 模拟器控制 API。 */ |
| | | /** 本机开发模拟器的配置与观测 API,不向设备发送控制命令。 */ |
| | | @Anonymous |
| | | @RestController |
| | | @Profile("dev-simulator") |
| | |
| | | this(simulator, candidateStore, null); |
| | | } |
| | | |
| | | /** 返回临时控制页;匿名放行后仍由本机拦截器限制来源。 */ |
| | | /** 返回模拟器配置页;匿名放行后仍由本机拦截器限制来源。 */ |
| | | @GetMapping(value = "/dev/bts-simulator.html", produces = MediaType.TEXT_HTML_VALUE) |
| | | public Resource page() |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /** 配置稳定 S 通道的固定和动态测量项。 */ |
| | | /** 保存稳定 S 通道的固定测量值及自定义指标,不产生新的成功观测。 */ |
| | | @PutMapping("/dev/bts-simulator/collectors/{collectorId}/channels/{channelCode}") |
| | | public StateSnapshot configureCollectorChannel(@PathVariable int collectorId, |
| | | @PathVariable String channelCode, @RequestBody CollectorChannelCommand command) |