本接口支持通过自定义查询时间段,获取该时间段的附加组件通用请求次数。
说明
该接口属于历史版本 API,建议您使用新版 DescribeImageXBillingRequestCntUsage 接口。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | DescribeImageXBillingRequestCntUsage | 接口名称。当前 API 的名称为 DescribeImageXBillingRequestCntUsage。 |
| Version | String | 是 | 2018-08-01 | 接口版本。当前 API 的版本为 2018-08-01。 |
ServiceIds | String | 否 |
| 服务 ID。为空时表示不筛选,支持查询多个服务,不同的服务使用逗号分隔。 |
| AdvFeats | String | 否 | a1,a2 | 组件名称。为空时表示不筛选,支持查询多个AdvFeat,不同的AdvFeat使用逗号分隔。 |
| GroupBy | String | 是 | AdvFeat | 固定值,仅支持AdvFeat即附加组件。 |
StartTime | String | 是 |
| 获取数据起始时间点。 说明 由于仅支持查询近一年历史数据,则若此刻时间为 |
EndTime | String | 是 |
| 获取数据结束时间点。 |
Interval | String | 否 |
| 查询数据的时间粒度。单位为秒。缺省时查询 StartTime 和 EndTime 时间段全部数据,此时单次查询最大时间跨度为 93 天。支持取值如下:
|
下表仅列出本接口特有的返回参数。更多信息请见公共返回参数。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| RequestCntData | Array of RequestCntData | - | 附加组件通用请求次数据。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
AdvFeat | String |
| 附加组件类型,如:enhance,smartcut。 |
| Data | Array of Data | - | 时序数据列表。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| TimeStamp | String | 2022-07-10T00:00:00+08:00 | 统计时间点,时间片开始时刻。按照ISO8601表示法,格式为:YYYY-MM-DDThh:mm:ss±hh:mm。 |
| Value | Integer | 875 | 请求次。 |
GET https://imagex.volcengineapi.com/?Action=DescribeImageXBillingRequestCntUsage&Version=2018-08-01&ServiceIds=s1,s2&AdvFeats=a1,a2&GroupBy=AdvFeat&StartTime=2019-06-02T00:00:00+08:00&EndTime=2019-06-02T00:00:00+08:00&Interval=300
{ "ResponseMetadata": { "RequestId": "202306041104200100100232280022D31", "Action": "DescribeImageXBillingRequestCntUsage", "Version": "2018-08-01", "Service": "ImageX", "Region": "cn-north-1" }, "Result": { "RequestCntData": [ { "AdvFeat": "total", "Data": [ { "TimeStamp": "2023-01-01T00:00:00+08:00", "Value": 1234 } ] }, { "AdvFeat": "enhance", "Data": [ { "TimeStamp": "2023-01-01T00:00:00+08:00", "Value": 875 } ] } ] } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
| 状态码 | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | InvalidParameter | Missing Parameter. | 请求参数错误 |
| 401 | ParamAccountMismatch | Param {} did not belong to your account. | 请求参数不属于账号 |
| 500 | InternalError | Internal Error. | 内部错误 |