查询 AI 加速网关的统计数据概览。返回指定时间范围内各监控指标的汇总统计值,用于快速了解整体调用情况。
节流限制:您每秒最多可以提交 20 个 API 请求。
参数名称 | 数据类型 | 是否必选 | 参数说明 |
|---|---|---|---|
Action | String | 是 | 接口名称。当前 API 的名称为 DescribeAIGatewayStatistics。 |
Version | String | 是 | 接口版本。当前 API 的版本为 2021-04-01。 |
参数名称 | 数据类型 | 是否必选 | 参数说明 | 示例 |
|---|---|---|---|---|
Metric | String | 是 | 查询的监控指标名称。取值:
| requests |
StartTime | Integer | 是 | 查询时间范围的起始时间。Unix 时间戳,单位为秒。 | 1700000000 |
EndTime | Integer | 是 | 查询时间范围的结束时间。Unix 时间戳,单位为秒。与 StartTime 配合使用。时间跨度最长 30 天。 | 1700003600 |
Interval | Integer | 是 | 统计聚合粒度,单位为分钟。该值影响返回数据点的时间间隔。取值: 5–60。 | 5 |
AccountID | String | 是 | 火山引擎账号 ID。 |
参数名称 | 数据类型 | 参数说明 | 示例 |
|---|---|---|---|
MetricDataList | Object[] | 监控数据列表。包含查询到的指标数据。 |
POST https://open.volcengineapi.com?Action=DescribeAIGatewayStatistics&Version=2021-04-01 { "AccountID": "", "EndTime": 1700003600, "Interval": 5, "Metric": "requests", "StartTime": 1700000000 }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "DescribeAIGatewayStatistics", "Version": "2021-04-01", "Service": "dcdn", "Region": "cn-north-1" }, "Result": { "MetricDataList": [ { "Metric": "requests", "Timestamp": 1700000000, "Value": 128 } ] } }