workspaceapp__ShowServerMetricData
Retrieves CPU, memory, disk, network, and user online-time metrics for a specified server over a 1-hour to 30-day window, enabling performance monitoring and troubleshooting.
Instructions
[WORKSPACEAPP] 该接口可获取某一计算机在一段时间段(范围:1小时到30天)的数据信息(例如CPU占用率、内存占用率、用户的在线时间段等),最长数据保存时间不能超过180天。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"end_time": "<end_time>",
"project_id": "<project_id>",
"server_id": "<server_id>",
"start_time": "<start_time>"
},
"name": "workspaceapp__ShowServerMetricData"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time | Yes | 监控结束时间:由日期加时间组成,UTC格式,例如“2021-05-11T11:45:42.000Z”。 | |
| server_id | Yes | 服务器唯一标识。 | |
| project_id | Yes | 项目唯一标识。 | |
| start_time | Yes | 监控开始时间:由日期加时间组成,UTC格式,例如“2021-05-11T11:45:42.000Z”。 | |
| metric_name | No | 监控查询指标:例如 "cpu_util",详情见下表;当metric_name为空时,为批量查询。| 指标 | 指标名称 | 测量对象 | 监控周期 || ------------------------------------- | ----------------- | ------------ | -------- || cpu_util | CPU使用率 | 弹性云服务器 | 5分钟 || mem_util | 内存使用率 | 弹性云服务器 | 5分钟 || disk_util_inband | 磁盘使用率 | 弹性云服务器 | 5分钟 || disk_read_bytes_rate | 磁盘读带宽 | 弹性云服务器 | 5分钟 || disk_write_bytes_rate | 磁盘写带宽 | 弹性云服务器 | 5分钟 || disk_read_requests_rate | 磁盘读IOPS | 弹性云服务器 | 5分钟 || disk_write_requests_rate | 磁盘写IOPS | 弹性云服务器 | 5分钟 || network_incoming_bytes_rate_inband | 带内网络流入速率 | 弹性云服务器 | 5分钟 || network_outgoing_bytes_rate_inband | 带内网络流出速率 | 弹性云服务器 | 5分钟 || network_incoming_bytes_aggregate_rate | 带外网络流入速率 | 弹性云服务器 | 5分钟 || network_outgoing_bytes_aggregate_rate | 带外网络流出速率 | 弹性云服务器 | 5分钟 | |