| | |
| | | return R.data(alarmRuleService.getDetail(id)); |
| | | } |
| | | |
| | | /** |
| | | * 通过告警规则类型查询生成告警规则类型 |
| | | * @param alarmRuleType |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="通过告警规则类型查询生成告警规则类型", notes="通过告警规则类型查询生成告警规则类型") |
| | | @GetMapping(value = "/getCreateRuleType") |
| | | public R getCreateRuleType(String alarmRuleType) { |
| | | return R.data(alarmRuleService.getCreateRuleType(alarmRuleType)); |
| | | } |
| | | |
| | | /** |
| | | * 通过成告警规则类型查询告警规则名称 |
| | | * @param createAlarmType |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="通过成告警规则类型查询告警规则名称", notes="通过成告警规则类型查询告警规则名称") |
| | | @GetMapping(value = "/getAlarmRuleName") |
| | | public R getAlarmRuleName(String createAlarmType) { |
| | | return R.data(alarmRuleService.getAlarmRuleName(createAlarmType)); |
| | | } |
| | | |
| | | } |