[ server ] [ status ]- update some code - 1
This commit is contained in:
@@ -10,8 +10,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import static io.wdd.rpc.scheduler.service.status.MonitorAllAgentStatus.ALL_AGENT_HEALTHY_STATUS_MAP;
|
||||
import static io.wdd.rpc.scheduler.service.status.MonitorAllAgentStatus.HEALTHY_STATUS_AGENT_LIST_MAP;
|
||||
import static io.wdd.rpc.init.ServerBootUpEnvironment.ALL_AGENT_STATUS_MAP;
|
||||
import static io.wdd.rpc.init.ServerBootUpEnvironment.STATUS_AGENT_LIST_MAP;
|
||||
|
||||
|
||||
@RestController
|
||||
@Api("Agent运行状态Controller")
|
||||
@@ -21,16 +22,16 @@ public class StatusController {
|
||||
|
||||
@ApiOperation("获取所有Agent的运行状态")
|
||||
@GetMapping("/agentStatus")
|
||||
public R<Map> GetAllAgentHealthyStatus(){
|
||||
public R<Map> GetAllAgentHealthyStatus() {
|
||||
|
||||
return R.ok(ALL_AGENT_HEALTHY_STATUS_MAP);
|
||||
return R.ok(ALL_AGENT_STATUS_MAP);
|
||||
}
|
||||
|
||||
@ApiOperation("获取 状态-Agent Map")
|
||||
@GetMapping("/statusAgent")
|
||||
public R<Map> GetHealthyStatusAgentList(){
|
||||
public R<Map> GetHealthyStatusAgentList() {
|
||||
|
||||
return R.ok(HEALTHY_STATUS_AGENT_LIST_MAP);
|
||||
return R.ok(STATUS_AGENT_LIST_MAP);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user