最近更新时间:2024.01.08 17:26:44
首次发布时间:2022.06.27 09:59:29
此接口用域名等条件,查询状态码数据统计。
请求地址:https://vod.volcengineapi.com?Action=ListCdnStatusData&Version=2022-01-01
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListCdnStatusData | 接口名称。当前 API 的名称为 ListCdnStatusData 。 |
Version | String | 是 | 2022-01-01 | 接口版本。当前 API 的版本为 2022-01-01 。 |
Domains | String | 是 | example.vod.com | 域名,多个用英文逗号 , 隔开。您可通过 ListDomain 接口获取指定空间下的域名列表。 |
Interval | String | 是 |
| 指定查询数据的时间粒度,单位:秒。取值如下:
|
StartTimestamp | Long | 否 |
| 查询范围起始时间。Unix 时间戳,单位为秒。它表示从 1970 年 1 月 1 日 00:00:00 UTC 到指定时间的秒数。默认当天 0 点。 说明 在 JSON 中为 String 类型。 |
EndTimestamp | Long | 否 |
| 查询范围截止时间。Unix 时间戳,单位为秒。它表示从 1970 年 1 月 1 日 00:00:00 UTC 到指定时间的秒数。默认为第二天 0 点。 说明
|
DataType | String | 是 |
| 统计数据类别。取值如下:
|
Metric | String | 是 |
| 指标类别。取值如下:
|
NeedDetail | Boolean | 否 |
| 是否需要详细数据。取值如下:
|
下表仅列出本接口特有的返回参数。更多信息请见公共返回参数。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Datas | Array of Datas | - | 用量信息 |
NoPermissionDomains | Array of String | - | 无权限域名列表 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Name | String | total | 统计目标名。 |
Metric | String | 2xx | 指标类别。 |
DataType | String | edge | 统计类别。 |
Points | Array of Points | - | 打点数据。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Timestamp | Double | 1702850400 | 时间戳。 |
Value | Double | 84 | 数值。 |
https://vod.volcengineapi.com?Action=ListCdnStatusData&Version=2022-01-01
{ "ResponseMetadata": { "RequestId": "2022052615****0807422501B3C82E", "Action": "ListCdnStatusData", "Version": "2022-01-01", "Service": "vod", "Region": "cn-north-1" }, "Result": { "Datas": [ { "Name": "total", "Metric": "2xx", "DataType": "edge", "Points": [ { "Timestamp": 1653494400, "Value": 681353 } ] }, { "Name": "total", "Metric": "3xx", "DataType": "edge", "Points": [ { "Timestamp": 1653494400, "Value": 182 } ] }, { "Name": "total", "Metric": "4xx", "DataType": "edge", "Points": [ { "Timestamp": 1653494400, "Value": 39182 } ] }, { "Name": "total", "Metric": "5xx", "DataType": "edge", "Points": [ { "Timestamp": 1653494400 } ] }, { "Name": "total", "Metric": "total", "DataType": "edge", "Points": [ { "Timestamp": 1653494400, "Value": 720717 } ] } ] } }
本接口无特有的错误码。更多信息请见公共错误码。
点播 OpenAPI 提供了配套的服务端 SDK,支持多种编程语言,帮助您实现快速开发。建议使用服务端 SDK 来调用 API,此 API 各语言调用的示例代码,请参考如下: