class AlertConvergeController {

    @Autowired
    private AlertConvergeService alertConvergeService;

    @PostMapping
    @Operation(summary = "New Alarm Converge", description = "Added an alarm Converge")
    public ResponseEntity<Message<Void>> addNewAlertConverge(@Valid @RequestBody AlertConverge alertConverge) {
        alertConvergeService.validate(alertConverge, false);
        alertConvergeService.addAlertConverge(alertConverge);
        return ResponseEntity.ok(Message.success("Add success"));
    }

    @PutMapping
    @Operation(summary = "Modifying an Alarm Converge", description = "Modify an existing alarm Converge")
    public ResponseEntity<Message<Void>> modifyAlertConverge(@Valid @RequestBody AlertConverge alertConverge) {
        alertConvergeService.validate(alertConverge, true);
        alertConvergeService.modifyAlertConverge(alertConverge);
        return ResponseEntity.ok(Message.success("Modify success"));
    }

    @GetMapping(path = "/{id}")
    @Operation(summary = "Querying Alarm Converge",
            description = "You can obtain alarm Converge information based on the alarm Converge ID")
    public ResponseEntity<Message<AlertConverge>> getAlertConverge(
            @Parameter(description = "Alarm Converge ID", example = "6565463543") @PathVariable("id") long id) {<FILL_FUNCTION_BODY>}

}

        AlertConverge alertConverge = alertConvergeService.getAlertConverge(id);
        if (alertConverge == null) {
            return ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertConverge not exist."));
        } else {
            return ResponseEntity.ok(Message.success(alertConverge));
        }
    
<no_super_class>