aom__ListMetricItems
Queries the metrics available for monitoring in AOM, filtered by namespace, metric name, dimensions, or resource ID, with pagination controls for start position and result limit.
Instructions
[AOM] 该接口用于查询系统当前可监控的指标列表,可以指定指标命名空间、指标名称、维度、所属资源的编号(格式为:resType_resId),分页查询的起始位置和返回的最大记录条数。
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": {
"project_id": "<project_id>"
},
"name": "aom__ListMetricItems"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 指标查询方式。 | |
| limit | No | 用于限制本次返回的结果数据条数。 | |
| start | No | 分页查询起始位置,为非负整数。 | |
| project_id | Yes | 租户从IAM申请到的projectid,一般为32位字符串。 | |
| inventoryId | No | 资源编号,格式为resType_resId。其中resType部分的枚举值为:host,application,instance, container,process,network,storage, volume。当URI参数中的type取值为“inventory”时,通过该参数查询关联的指标,不再使用metricItems数组中的信息。 | |
| metricItems | No | 当URI参数中的type取值不为“inventory”时,就通过该数组传递的参数信息进行指标查询。 |