海外 ACDN 分发统计接口¶
POST 获取流量数据¶
POST /prod-api/acdn/acdnStatisticsRest/describeData
Body 请求参数
{
"action": [
{
"metricName": "Requests"
},
{
"metricName": "BytesDownloaded"
},
{
"metricName": "status"
}
],
"interval": "2",
"params": {
"beginTime": "2024-09-13 00:00:00",
"endTime": "2024-09-20 23:59:59"
},
"distributionNames": ["E22HJMKYBSO11", "E30T0A73CZW42"]
}
请求参数¶
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
Authorization | header | string | 否 | none | |
body | body | object | 否 | none | |
» action | body | [object] | 是 | none | |
»» metricName | body | string | 是 | metricName | metricName:status(HTTP 状态代码),Requests(请求总数),BytesDownloaded(总流量) |
» interval | body | string | 是 | 统计粒度 | interval: 3(每五分钟),2(每小时),1(每天) |
» params | body | object | 是 | none | |
»» beginTime | body | string | 是 | 开始时间 | none |
»» endTime | body | string | 是 | 结束时间 | none |
» distributionNames | body | [string] | 是 | 统计分配 | none |
返回示例
200 Response
{
"msg": "velit magna sunt",
"code": 70,
"data": {
"eRequests": {
"total": 96,
"list": [[4]]
},
"e_4xxStatus": [[12]],
"e_otherStatus": [[86]],
"e_4xxStatus_total": 35,
"e_otherStatus_total": 63,
"eBytesDownloaded": {
"total": 51,
"list": [[88]]
},
"e_5xxStatus": [[68]],
"e_5xxStatus_total": 16
}
}
返回结果¶
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构¶
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» msg | string | true | none | none | |
» code | integer | true | none | none | |
» data | object | true | none | none | |
»» eRequests | object | true | none | 请求数 | none |
»»» total | integer | true | none | 请求总数 | none |
»»» list | [array] | true | none | 请求统计图 | none |
»» e_4xxStatus | [array] | true | none | 4xx 统计图 | none |
»» e_otherStatus | [array] | true | none | other 统计图 | none |
»» e_4xxStatus_total | integer | true | none | 4xx 总数 | none |
»» e_otherStatus_total | integer | true | none | other 总数 | none |
»» eBytesDownloaded | object | true | none | 总流量 | none |
»»» total | integer | true | none | 总流量数 | none |
»»» list | [array] | true | none | 流量统计图 | none |
»» e_5xxStatus | [array] | true | none | 5xx 统计图 | none |
»» e_5xxStatus_total | integer | true | none | 5xx 总数 | none |