获取 单个服务的运行状态信息。
默认接口请求频率限制:20次/秒
REST URL
GET /api/rest/external/{version}/ops/service/info?enterpriseId=xxx&serviceId=xxx&startTime=xxxx&endTime=xxxx请求参数说明
参数 | 参数类型 | 参数位置 | 是否必须 | 默认值 | 说明 | 初始平台 |
enterpriseId | String | Query | 是 | 无 | 企业ID,通过管理平台-云视讯API获得 | 分区云5.2-20260327 公有云不存在 |
startTime | Long | Query | 否 | 当前时间-1 小时 | 开始时间,时间戳 | 分区云5.2-20260327 公有云不存在 |
endTime | Long | Query | 否 | 当前时间 | 结束时间,时间戳 | 分区云5.2-20260327 公有云不存在 |
serviceName | String | Query | 否 | 无 | 服务名 | 分区云5.2-20260327 公有云不存在 |
返回结果示例:
成功时返回200,失败时返回小鱼RESTAPI错误码
[{
"serviceId": "sdk-server-xhva",
"name": "sdk-server",
"type": "CORE",
"status": "RUNNING",
"version": "3.0.210",
"cpuUsagePercent": [
[
1769150955,
"34"
],
[
1769150970,
"34"
],
[
1769150985,
"34"
],
[
1769151000,
"32"
]
],
"memoryUsage": [
[
1769150955,
"34"
],
[
1769150970,
"34"
],
[
1769150985,
"34"
],
[
1769151000,
"32"
]
]
}
]
成功时返回结果数据,失败时返回小鱼RESTAPI错误码
返回参数说明
参数名称 | 说明 |
serviceId | 服务 Id |
serviceName | 服务名称 |
type | 服务类型 |
status | 状态 |
version | 版本号 |
launchTime | 启动时间 |
cpuUsagePercent | cpu使用率(%),开始时间到结束时间之间的某些时间点的取值,最大 100 |
memoryUsage | 占用内存(MB),,开始时间到结束时间之间的某些时间点的取值 |