|
|
|
|
@ -50,7 +50,7 @@ public class AlertRuleController extends BaseController { |
|
|
|
|
*/ |
|
|
|
|
@PreAuthorize("@ss.hasPermi('inMonitoring:alertRule:add')") |
|
|
|
|
@ApiOperation("增加预警规则") |
|
|
|
|
@Log(title = "【增加预警规则】", businessType = BusinessType.DELETE) |
|
|
|
|
@Log(title = "【增加预警规则】", businessType = BusinessType.INSERT) |
|
|
|
|
@PostMapping("/addRule") |
|
|
|
|
public AjaxResult addRule(@RequestBody AlertRuleAddDto dto) { |
|
|
|
|
try { |
|
|
|
|
@ -69,7 +69,7 @@ public class AlertRuleController extends BaseController { |
|
|
|
|
*/ |
|
|
|
|
@PreAuthorize("@ss.hasPermi('inMonitoring:alertRule:edit')") |
|
|
|
|
@ApiOperation("修改预警规则") |
|
|
|
|
@Log(title = "【修改预警规则】", businessType = BusinessType.DELETE) |
|
|
|
|
@Log(title = "【修改预警规则】", businessType = BusinessType.UPDATE) |
|
|
|
|
@PutMapping("/editRule") |
|
|
|
|
public AjaxResult editRule(@RequestBody AlertRuleAddDto dto) { |
|
|
|
|
try { |
|
|
|
|
@ -86,7 +86,7 @@ public class AlertRuleController extends BaseController { |
|
|
|
|
*/ |
|
|
|
|
@PreAuthorize("@ss.hasPermi('inMonitoring:alertRule:list')") |
|
|
|
|
@GetMapping("/list") |
|
|
|
|
@Log(title = "【查询预警规则】", businessType = BusinessType.DELETE) |
|
|
|
|
@Log(title = "【查询预警规则】", businessType = BusinessType.OTHER) |
|
|
|
|
@ApiOperation("查询预警规则") |
|
|
|
|
public TableDataInfo list(AlertRule alertRule) { |
|
|
|
|
startPage(); |
|
|
|
|
@ -102,7 +102,7 @@ public class AlertRuleController extends BaseController { |
|
|
|
|
@PreAuthorize("@ss.hasPermi('inMonitoring:alertRule:query')") |
|
|
|
|
@GetMapping(value = "/{id}") |
|
|
|
|
@ApiOperation("查询预警详细规则") |
|
|
|
|
@Log(title = "【查询预警详细规则】", businessType = BusinessType.DELETE) |
|
|
|
|
@Log(title = "【查询预警详细规则】", businessType = BusinessType.OTHER) |
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) { |
|
|
|
|
return success(alertRuleService.selectDetailAlertRuleById(id)); |
|
|
|
|
} |
|
|
|
|
@ -139,7 +139,7 @@ public class AlertRuleController extends BaseController { |
|
|
|
|
@ApiOperation("获取预警参数") |
|
|
|
|
@PreAuthorize("@ss.hasPermi('inMonitoring:alertRule:byTable')") |
|
|
|
|
@GetMapping("/byTable") |
|
|
|
|
@Log(title = "【获取预警参数】", businessType = BusinessType.EXPORT) |
|
|
|
|
@Log(title = "【获取预警参数】", businessType = BusinessType.OTHER) |
|
|
|
|
public AjaxResult getParamsByTableName() { |
|
|
|
|
return AjaxResult.success("获取预警参数成功",dictAlarmParamService.getParamsByTableName()); |
|
|
|
|
} |
|
|
|
|
|