查詢回源狀態碼請求數,回源狀態碼請求數占比數據
更新時間 2025-07-04 09:54:05
最近更新時間: 2025-07-04 09:54:05
分享文章
接口描述:調用本接口查詢回源狀態碼請求數和回源狀態碼請求數占比
請求方式:post
請求路徑:/statistics/query-miss-http-status-code-data
使用說明:
- 單個用戶一分鐘限制調用10000次,并發不超過100;
- 單次查詢輸入域名的個數不能超過100個;
- 時間粒度為24h時,查詢開始時間與結束時間需要跨天,否則查詢的數據為空;
- 最大返回50000條記錄;
- 若查詢結束時間不包含在該批次的最后一秒,默認end_time為該批次最后一秒,例如:時間粒度為1h,end_time設置為17:30對應的時間戳,此時end_time默認成17:59:59;
- 時間片統計數據均為前打點,假如請求5分鐘粒度數據,time_stamp= "2021-10-13 00:00"對應的時間戳,表示統計的數據為時間區間[2021-10-13 00:00, 2021-10-13 00:05);
- 根據請求參數時間粒度(Interval)和聚合維度(group_by)個數的不同,單次請求可查詢歷史數據范圍,數據延遲,對應如下表,若開始時間超過可查詢歷史數據時間范圍,超過部分的數據為0。
| 時間粒度 | 可查詢歷史數據時間范圍 | 數據延遲 | 單次可查詢的時間跨度 |
|---|---|---|---|
| 1m | 最近7天 | 5分鐘 | 3小時 |
| 5m | 最近186天 | 20分鐘 | 31天 |
| 1h | 最近186天 | 20分鐘 | 31天 |
| 24h | 最近186天 | 20分鐘 | 31天 |
請求參數說明(json):
| 參數 | 類型 | 是否必傳 | 名稱 | 描述 |
|---|---|---|---|---|
| start_time | int | 是 | 開始時間戳 | 起始時間,時間戳(秒)。 |
| end_time | int | 是 | 結束時間戳 | 結束時間,時間戳(秒)。 |
| interval | string | 否 | 時間粒度 | 時間粒度,目前支持1m,5m,1h和24h,默認5m。 |
| product_type | list< string> | 否 | 產品類型 | 傳“006”代表全站加速,不傳代表全部產品。 |
| domain | list< string > | 否 | 域名列表 | 域名,不傳默認名下所有域名,可多個域名,作為統計篩選項。 |
| province | list< int > | 否 | 省編碼列表 | 省編碼,不傳默認所有省份,可多個省編碼,作為統計篩選項,點擊查看地區及省份列表。 |
| isp | list< string > | 否 | 運營商編碼列表 | 運營商編碼,不傳默認所有運營商,可多個運營商編碼,作為統計篩選項,點擊查看運營商列表。 |
| network_layer_protocol | string | 否 | 網絡層協議 | 網絡層協議,不傳默認所有網絡層協議,支持作為統計篩選項,可以為ipv4、ipv6、other。 |
| application_layer_protocol | string | 否 | 應用層協議 | 應用層協議,不傳默認所有應用層協議,支持作為統計篩選項,可以為http,https,rtmp,quic,other。 |
| group_by | list< string > | 否 | 結果聚合維度 | 指標在計算結果的聚合維度,不傳或為空默認按照時間粒度聚合,可多個統計維度,可以為product_code,domain,province,isp,network_layer_protocol,application_layer_protocol。 |
返回參數說明:
| 參數 | 類型 | 是否必傳 | 名稱及描述 |
|---|---|---|---|
| code | int | 是 | 狀態碼 |
| message | string | 是 | 描述信息 |
| start_time | int | 否 | 開始時間戳,時間戳(秒) |
| end_time | int | 否 | 結束時間戳,時間戳(秒) |
| interval | string | 否 | 時間粒度 |
| req_miss_http_status_code_data_interval | list< object > | 否 | 每個時間間隔的請求數數據 |
| req_miss_http_status_code_data_interval[*].time_stamp | int | 否 | 時間片開始時間戳 |
| req_miss_http_status_code_data_interval[*].product_type | string | 否 | 產品類型 |
| req_miss_http_status_code_data_interval[*].domain | string | 否 | 域名 |
| req_miss_http_status_code_data_interval[*].province | int | 否 | 省編碼 |
| req_miss_http_status_code_data_interval[*].isp | string | 否 | 運營商編碼 |
| req_miss_http_status_code_data_interval[*].network_layer_protocol | string | 否 | 網絡層協議 |
| req_miss_http_status_code_data_interval[*].application_layer_protocol | string | 否 | 應用層協議 |
| req_miss_http_status_code_data_interval[*].miss_http_status_code | string | 否 | 回源狀態碼 |
| req_miss_http_status_code_data_interval[*].miss_http_status_code_num | int | 否 | 回源狀態碼個數 |
| req_miss_http_status_code_data_interval[*].miss_http_status_code_proportion | float | 否 | 回源狀態碼占比(百分比,保留兩位小數) |
示例:
請求路徑://cdnapi-global.ctapi.daliqc.cn/statistics/query-miss-http-status-code-data
請求參數:
{
"start_time": 1662413100,
"end_time": 1662413700,
"product_type":["006"],
"domain": [
"aaa.daliqc.cn",
"bbb.daliqc.cn"
],
"group_by": [
"application_layer_protocol"
]
}
返回結果:
{
"code": 100000,
"message": "success",
"start_time": 1662413100,
"end_time": 1662413700,
"interval": "5m",
"req_miss_http_status_code_data_interval": [
{
"time_stamp": 1662413100,
"miss_http_status_code": "200",
"miss_http_status_code_num": 2304,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 4.03
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "200",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "0",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "403",
"miss_http_status_code_num": 40610,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 71
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "416",
"miss_http_status_code_num": 1,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "206",
"miss_http_status_code_num": 430,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 61.25
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "403",
"miss_http_status_code_num": 115,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 16.38
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "206",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "499",
"miss_http_status_code_num": 2861,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 5
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "400",
"miss_http_status_code_num": 2,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "499",
"miss_http_status_code_num": 24,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 3.42
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "200",
"miss_http_status_code_num": 130,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 18.52
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "408",
"miss_http_status_code_num": 1,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "400",
"miss_http_status_code_num": 3,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 0.43
},
{
"time_stamp": 1662413100,
"miss_http_status_code": "206",
"miss_http_status_code_num": 11419,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 19.96
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "424",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "200",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "416",
"miss_http_status_code_num": 0,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "499",
"miss_http_status_code_num": 17,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 2.71
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "400",
"miss_http_status_code_num": 4,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 0.64
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "403",
"miss_http_status_code_num": 130,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 20.7
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "200",
"miss_http_status_code_num": 112,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 17.83
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "206",
"miss_http_status_code_num": 365,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 58.12
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "499",
"miss_http_status_code_num": 2937,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 5.55
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "504",
"miss_http_status_code_num": 1,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "206",
"miss_http_status_code_num": 11131,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 21.04
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "206",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "200",
"miss_http_status_code_num": 2569,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 4.86
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "403",
"miss_http_status_code_num": 36244,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 68.52
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "502",
"miss_http_status_code_num": 3,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0.01
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "0",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "304",
"miss_http_status_code_num": 0,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "424",
"miss_http_status_code_num": 5,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0.01
},
{
"time_stamp": 1662413400,
"miss_http_status_code": "408",
"miss_http_status_code_num": 2,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "200",
"miss_http_status_code_num": 110,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 14.36
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "499",
"miss_http_status_code_num": 2915,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 5.72
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "0",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "400",
"miss_http_status_code_num": 10,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 1.31
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "200",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "403",
"miss_http_status_code_num": 129,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 16.84
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "416",
"miss_http_status_code_num": 0,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "200",
"miss_http_status_code_num": 2229,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 4.37
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "499",
"miss_http_status_code_num": 14,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 1.83
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "502",
"miss_http_status_code_num": 2,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "403",
"miss_http_status_code_num": 34233,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 67.13
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "206",
"miss_http_status_code_num": 11602,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 22.75
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "408",
"miss_http_status_code_num": 1,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "424",
"miss_http_status_code_num": 15,
"application_layer_protocol": "http",
"miss_http_status_code_proportion": 0.03
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "206",
"miss_http_status_code_num": 503,
"application_layer_protocol": "https",
"miss_http_status_code_proportion": 65.67
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "206",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
},
{
"time_stamp": 1662413700,
"miss_http_status_code": "424",
"miss_http_status_code_num": 0,
"application_layer_protocol": "other",
"miss_http_status_code_proportion": null
}
]
}
錯誤碼請參考:參數code和message含義