blob_ io
Last updated
2023-07-14 17:45:18
{"value":"## **\u63cf\u8ff0**\n\n\u8be5\u63a5\u53e3\u53ef\u4ee5\u83b7\u53d6\u5916\u7f51\u6d41\u51fa\u6d41\u91cf\u3001CDN\u56de\u6e90\u6d41\u91cf\u7edf\u8ba1\u548c GET \u8bf7\u6c42\u6b21\u6570\u3002\u53ef\u67e5\u8be2\u5f53\u5929\u8ba1\u91cf\uff0c\u7edf\u8ba1\u5ef6\u8fdf\u5927\u6982 5 \u5206\u949f\u3002\n\n\n\n\n\n## **\u8bf7\u6c42**\n\n\n\n### **\u8bed\u6cd5**\n\n```\nGET \/v6\/blob_io?begin=<BeginTime>&end=<EndTime>&g=day&select=flow HTTP\/1.1\nHost: api.qiniuapi.com\nContent-Type: application\/x-www-form-urlencoded\nX-Qiniu-Date: 20060102T150405Z\nAuthorization: Qiniu <AccessToken>\n```\n\n\n\n\n\n### **\u8bf7\u6c42\u53c2\u6570**\n\n| \u53c2\u6570\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| -------- | ---- | ------------------------------------------------------------ |\n| begin | \u662f | \u8d77\u59cb\u65f6\u95f4\u5b57\u7b26\u4e32\uff0c\u683c\u5f0f\u4e3a20060102150405\uff0c\u95ed\u533a\u95f4 |\n| end | \u662f | \u7ed3\u675f\u65f6\u95f4\u5b57\u7b26\u4e32\uff0c\u683c\u5f0f\u4e3a20060102150405\uff0c\u5f00\u533a\u95f4 |\n| g | \u662f | \u65f6\u95f4\u805a\u5408\u7c92\u5ea6(`5min` `hour` `day` `month`) |\n| select | \u662f | \u503c\u5b57\u6bb5 `flow` \u6d41\u91cf (Byte)`hits` GET \u8bf7\u6c42\u6b21\u6570 |\n| $bucket | \u5426 | \u7a7a\u95f4\u540d\u79f0 |\n| $domain | \u5426 | \u7a7a\u95f4\u8bbf\u95ee\u57df\u540d |\n| $ftype | \u5426 | \u5b58\u50a8\u7c7b\u578b `0` \u6807\u51c6\u5b58\u50a8`1` \u4f4e\u9891\u5b58\u50a8`2` \u5f52\u6863\u5b58\u50a8`3` \u6df1\u5ea6\u5f52\u6863\u5b58\u50a8 |\n| $region | \u5426 | \u5b58\u50a8\u533a\u57df ID, CDNCLOUD\u5bf9\u8c61\u5b58\u50a8\u652f\u6301\u7684 \u5b58\u50a8\u533a\u57df\u5217\u8868 |\n| $metric | \u5426 | \u6d41\u91cf\u8bf7\u6c42\u6765\u6e90 `flow_out` \u7528\u6237\u76f4\u63a5\u5230\u6e90\u7ad9\u7684\u8bf7\u6c42`cdn_flow_out` cdn \u56de\u6e90\u8bf7\u6c42`\u7a7a` \u6240\u6709\u8bf7\u6c42\u6765\u6e90 |\n\n- \u67e5\u8be2\u5916\u7f51\u4e0b\u8f7d\u6d41\u91cf\uff1aselect=flow&$metric=flow_out\n- \u67e5\u8be2CDN\u56de\u6e90\u6d41\u91cf\uff1aselect=flow&$metric=cdn_flow_out\n- \u67e5\u8be2\u4e0b\u8f7d\u8bf7\u6c42\u6b21\u6570\uff1aselect=hits&$metric=hits\n\n<\/br>\n\n\n\n### **\u8bf7\u6c42\u5934**\n\n\u8be5\u8bf7\u6c42\u64cd\u4f5c\u7684\u5b9e\u73b0\u4f7f\u7528\u4e86\u6240\u6709\u64cd\u4f5c\u7684\u516c\u5171\u8bf7\u6c42\u5934\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605\u516c\u5171\u8bf7\u6c42\u3002\n\n\n\n\n\n## **\u54cd\u5e94**\n\n\n\n\n\n### **\u54cd\u5e94\u5934**\n\n\u8be5\u8bf7\u6c42\u64cd\u4f5c\u7684\u5b9e\u73b0\u4f7f\u7528\u4e86\u6240\u6709\u64cd\u4f5c\u7684\u516c\u5171\u54cd\u5e94\u5934\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605\u516c\u5171\u54cd\u5e94\u5934\u3002\n\n\n\n\n\n### **\u54cd\u5e94\u5143\u7d20**\n\n| \u540d\u79f0 | \u8bf4\u660e |\n| ---- | --------------------------- |\n| time | \u7edf\u8ba1\u65f6\u95f4 \u7c7b\u578b\uff1a\u5b57\u7b26\u4e32 |\n| hits | GET \u8bf7\u6c42\u6b21\u6570 \u7c7b\u578b\uff1a\u6570\u5b57 |\n| flow | \u6d41\u91cf\uff0c\u5355\u4f4d Byte \u7c7b\u578b\uff1a\u6570\u5b57 |\n\n\n\n\n\n### **\u7279\u6b8a\u9519\u8bef**\n\n\u8be5\u64cd\u4f5c\u7684\u5b9e\u73b0\u4e0d\u4f1a\u8fd4\u56de\u7279\u6b8a\u9519\u8bef\u3002\u6709\u5173\u9519\u8bef\u548c\u9519\u8bef\u4ee3\u7801\u5217\u8868\u7684\u4e00\u822c\u4fe1\u606f\uff0c\u8bf7\u67e5\u9605\u9519\u8bef\u54cd\u5e94\u3002\n\n\n\n\n\n## **\u793a\u4f8b**\n\n\n\n\n\n### **\u5916\u7f51\u6d41\u51fa\u6d41\u91cf\u7edf\u8ba1\u793a\u4f8b**\n\n```\n\u8bf7\u6c42\uff1a\nGET \/v6\/blob_io?begin=20170818120000&end=20170818180000&g=day&select=flow&$metric=flow_out HTTP\/1.1\nHost: api.qiniuapi.com\nUser-Agent: Go-http-client\/1.1\nContent-Type: application\/x-www-form-urlencoded\nX-Qiniu-Date: 20170818T094233Z\nAuthorization: Qiniu j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:DOvuE4XbmHZYHSg_ZwUB6M5cqaU=\nAccept-Encoding: gzip\n\n\u54cd\u5e94\uff1a\nHTTP\/1.1 200 OK\nContent-Length: 62\nConnection: keep-alive\nContent-Type: application\/json\nDate: Fri, 18 Aug 2017 09:42:33 GMT\nServer: nginx\nX-Log: KODOBILL:210;APIS:211\nX-Reqid: YCIAAGgyN1ts59sU\n\n[\n {\n \"time\": \"2017-08-18T00:00:00+08:00\", \n \"values\": {\n \"flow\": 43482\n }\n }\n]\n```\n\n\n\n\n\n### **GET \u8bf7\u6c42\u6b21\u6570\u7edf\u8ba1\u793a\u4f8b**\n\n```\n\u8bf7\u6c42\uff1a\nGET \/v6\/blob_io?begin=20170818120000&end=20170818180000&g=day&select=hits HTTP\/1.1\nHost: api.qiniuapi.com\nUser-Agent: Go-http-client\/1.1\nContent-Type:application\/x-www-form-urlencoded\nX-Qiniu-Date: 20170818T094233Z\nAuthorization: Qiniu j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:uQE-nhBv5IZSeOG2bbHX94bA1LM=\nAccept-Encoding: gzip\n\n\u54cd\u5e94\uff1a\nHTTP\/1.1 200 OK\nContent-Length: 58\nConnection: keep-alive\nContent-Type: application\/json\nDate: Fri, 18 Aug 2017 09:43:23 GMT\nServer: nginx\nX-Log: KODOBILL:198;APIS:203\nX-Reqid: BksAAH_izh1459sU\n\n[\n {\n \"time\": \"2017-08-18T00:00:00+08:00\", \n \"values\": {\n \"hits\": 2\n }\n }\n]\n```\n"}