查询独享代理的性能数据
更新时间 2025-09-25 17:25:49
最近更新时间: 2025-09-25 17:25:49
接口功能介绍
查询独享代理的性能数据
接口约束
存在已开通的代理实例
URI
GET /RDS2/v1/open-api/proxy/health-info
路径参数 无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
outerProxyInstId | 是 | String | 代理id | eddf4d2c6d67407ba39e3453ee0776ca | |
beginTime | 否 | String | 开始时间 yyyy-MM-dd HH:mm:ss | 2022-09-16 17:50:08 | |
endTime | 否 | String | 结束时间 yyyy-MM-dd HH:mm:ss | 2022-09-16 17:50:10 |
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
project-id | 否 | String | 项目id | b829cb71308746a094853c21d5aac0a1 | |
inst-id | 否 | String | 实例id (和参数outerProdInstId保持一致) | 264729201196525109 | |
regionId | 是 | String | 资源池regionId,比如实例在资源池A,则需要填写A资源池的regionId。 | 81f7728662dd11ec810800155d307d5b |
请求体body参数 无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 返回码 取值范围:0 成功; 2001 参数异常;3001 业务异常;5001 请求响应失败 | 0 | |
message | String | 返回信息 | success | |
returnObj | Array of Objects | 返回对象 | returnObj | |
error | String | 错误码。当接口失败时才返回具体错误编码,成功不返回或者为空 | MYSQL_10001 | |
表 returnObj |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
role | String | 节点角色, m:主节点,s:从节点 | m | |
resId | Integer | 节点资源ID | 145 | |
time | Array of Strings | 时间线 | ||
sys | Array of Integers | Cpu 系统使用率 | ||
usr | Array of Integers | Cpu 用户使用率 | ||
si | Array of Integers | 软中断 Cpu 使用率 | ||
srvFailConnect | Array of Integers | 服务端当前失败连接数 | ||
srvCurConnect | Array of Integers | 服务端当前连接数 | ||
srvIncConnect | Array of Integers | 服务端当前新建连接数 | ||
cliFailConnect | Array of Integers | 客户端当前失败连接数 | ||
cliCurConnect | Array of Integers | 客户端当前连接数 | ||
cliIncConnect | Array of Integers | 客户端当前新建连接数 | ||
cpuUsedRate | Array of Strings | 总CPU使用率 | ||
memoryUsedRate | Array of Strings | 总内存使用率 |
枚举参数
无
请求示例
请求url
无
请求头header
无
请求体body
无
响应示例
{
"returnObj": [
{
"role": "m",
"srvFailConnect": [0,0,0,0,0],
"cliIncConnect": [0,0,0,0,0],
"sys": [1,1,1,1,1],
"resId": 147,
"cliFailConnect": [0,0,0,0,0],
"cpuUsedRate": ["3","4","4","4","3"],
"memoryUsedRate": ["39","39","39","39","39"],
"srvCurConnect": [0,0,0,0,0],
"usr": [2,2,2,2,2],
"cliCurConnect": [0,0,0,0,0],
"si": [0,0,0,0,0],
"time": ["09/25 16:28","09/25 16:28","09/25 16:29","09/25 16:29","09/25 16:30"],
"srvIncConnect": [0,0,0,0,0]
},
{
"role": "s",
"srvFailConnect": [0,0,0,0,0],
"cliIncConnect": [0,0,0,0,0],
"sys": [1,1,1,1,1],
"resId": 148,
"cliFailConnect": [0,0,0,0,0],
"cpuUsedRate": ["4","4","4","4","3"],
"memoryUsedRate": ["39","38","39","39","39"],
"srvCurConnect": [0,0,0,0,0],
"usr": [2,2,2,2,2],
"cliCurConnect": [0,0,0,0,0],
"si": [0,0,0,0,0],
"time": ["09/25 16:28","09/25 16:28","09/25 16:29","09/25 16:29","09/25 16:30"],
"srvIncConnect": [0,0,0,0,0]
}
],
"statusCode": 0,
"message": "success"
}
状态码
请参考 状态码
错误码
请参考 错误码