workspace__ListDesktopUsageMetric
Queries desktop usage statistics for a project, including active hours and idle days, so you can monitor and filter Workspace desktop utilization by time range and resource name.
Instructions
[WORKSPACE] 查询桌面使用统计信息;
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>",
"start_time": "<start_time>"
},
"name": "workspace__ListDesktopUsageMetric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | limit范围[1-100],默认值0。 | |
| offset | No | 查询的偏移量,默认值0。 | |
| end_time | Yes | 查询截至时间(0时区)。 | |
| sort_type | No | 按照指标进行排序的方向;需配合sort_field一起使用 | DESC |
| project_id | Yes | 项目ID。 | |
| sort_field | No | 按照指标进行排序 | |
| start_time | Yes | 查询起始时间(0时区) | |
| max_idle_days | No | 最大空闲天数 | |
| min_idle_days | No | 最小空闲天数。 | |
| resource_name | No | 资源名称(模糊匹配)。 | |
| usage_max_hours | No | 使用时长(hour)最大值(必须大于等于usage_min_hours)。 | |
| usage_min_hours | No | 使用时长(hour)最小值。 |