类 SystemInfoController
java.lang.Object
net.sohelp.boot.admin.core.base.BaseController
net.sohelp.boot.dev.web.system.info.SystemInfoController
@RestController("dev-system")
@RequestMapping("/dev/system/info")
public class SystemInfoController
extends BaseController
系统信息控制器,用于获取系统运行状态、资源使用率等信息。
- 从以下版本开始:
- 2023/4/17
- 作者:
- AaronFung
-
字段概要
从类继承的字段 net.sohelp.boot.admin.core.base.BaseController
request, response -
构造器概要
构造器 -
方法概要
从类继承的方法 net.sohelp.boot.admin.core.base.BaseController
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, response, responseStream, success, success, success, success, validateToken
-
构造器详细资料
-
SystemInfoController
public SystemInfoController()
-
-
方法详细资料
-
getRateInfo
@GetMapping("/getRateInfo") @Permission("ADMIN") public ApiResult getRateInfo() throws InterruptedException获取系统的各项使用率信息(CPU、内存、磁盘、网络)- 返回:
- 返回包含各项使用率的ApiResult对象
- 抛出:
InterruptedException- 当线程被中断时抛出异常
-
getInfo
@GetMapping("/getInfo") @Permission("ADMIN") public ApiResult<Map<String,Object>> getInfo() throws InterruptedException获取详细的系统参数信息,包括操作系统、Java环境、硬件配置及运行时间等- 返回:
- 包含详细系统信息的ApiResult对象
- 抛出:
InterruptedException- 当线程被中断时抛出异常
-