apig__ListMetricData
Query API Gateway monitoring metrics by instance, time range, granularity, dimension, and aggregation type to analyze bandwidth, traffic, and usage trends.
Instructions
[APIG] 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。
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": {
"dim": "<dim>",
"filter": "<filter>",
"from": "<from>",
"instance_id": "<instance_id>",
"metric_name": "<metric_name>",
"period": "<period>",
"project_id": "<project_id>",
"to": "<to>"
},
"name": "apig__ListMetricData"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。 | |
| dim | Yes | 指标维度 | |
| from | Yes | 查询数据起始时间,UNIX时间戳,单位毫秒。 | |
| filter | Yes | 数据聚合方式。 | |
| period | Yes | 监控数据粒度。 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| metric_name | Yes | 指标名称 |