| | |
| | | import com.ruoyi.system.domain.TTestPlanStep; |
| | | import com.ruoyi.system.domain.TTestResult; |
| | | import com.ruoyi.system.domain.TTestWarningThreshold; |
| | | import com.ruoyi.system.domain.TTestWarningException; |
| | | import com.ruoyi.system.domain.TTestLogicStepMapping; |
| | | import com.ruoyi.system.domain.TDetectionChannel; |
| | | import com.ruoyi.system.domain.TTestDataRevisionAction; |
| | |
| | | List<TTestChannelBinding> selectTestChannelBindings(Long testId); |
| | | List<TTestCollectorChannel> selectTestCollectorChannels(Long testId); |
| | | List<TTestWarningThreshold> selectTestThresholds(Long testId); |
| | | /** 以测试、指标和阈值规则为开放异常键原子聚合成功接收的超限值。 */ |
| | | int upsertWarningException(@Param("testId") Long testId, @Param("thresholdId") Long thresholdId, |
| | | @Param("sourceType") String sourceType, @Param("sourceIdentity") String sourceIdentity, |
| | | @Param("metricCode") String metricCode, @Param("value") java.math.BigDecimal value, |
| | | @Param("unit") String unit, @Param("ruleSnapshot") String ruleSnapshot, |
| | | @Param("severity") String severity, @Param("occurredAt") Date occurredAt); |
| | | /** 查询异常事实;不从设备状态或缺失数据推导异常。 */ |
| | | List<TTestWarningException> selectWarningExceptions(@Param("testId") Long testId, |
| | | @Param("status") String status); |
| | | TTestWarningException selectWarningExceptionById(Long exceptionId); |
| | | /** 仅将开放异常转为已关闭,原始异常事实仍保留。 */ |
| | | int closeWarningException(@Param("exceptionId") Long exceptionId, @Param("handledBy") Long handledBy, |
| | | @Param("handledByName") String handledByName, @Param("handledAt") Date handledAt, |
| | | @Param("handlingNote") String handlingNote); |
| | | /** 查询当前正在接收的测试,供接收调度绑定测试事实。 */ |
| | | List<Long> selectReceivingTestIds(); |
| | | int insertRealtimeSnapshot(@Param("testId") Long testId, @Param("bindingId") Long bindingId, |