count
Last updated
2023-07-14 16:52:21
{"value":"## **\u63cf\u8ff0**\n\n\u8be5\u63a5\u53e3\u53ef\u4ee5\u83b7\u53d6\u6807\u51c6\u5b58\u50a8\u7684\u6587\u4ef6\u6570\u91cf\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\/count?begin=<BeginTime>&end=<EndTime>&g=day 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| bucket | \u5426 | \u5b58\u50a8\u7a7a\u95f4\u540d\u79f0 |\n| begin | \u662f | \u8d77\u59cb\u65e5\u671f\u5b57\u7b26\u4e32\uff0c\u683c\u5f0f\u4e3a 20060102150405\uff0c\u95ed\u533a\u95f4 |\n| end | \u662f | \u7ed3\u675f\u65e5\u671f\u5b57\u7b26\u4e32\uff0c\u683c\u5f0f\u4e3a 20060102150405\uff0c\u5f00\u533a\u95f4 |\n| g | \u662f | \u65f6\u95f4\u7c92\u5ea6\uff0c\u652f\u6301`day`\uff1b\u5f53\u5929\u652f\u6301`5min`\u3001`hour`\u3001`day` |\n| region | \u5426 | \u5b58\u50a8\u533a\u57df ID, \u5bf9\u8c61\u5b58\u50a8\u652f\u6301\u7684 \u5b58\u50a8\u533a\u57df\u5217\u8868 |\n\n\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\u5934\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| times | Unix \u65f6\u95f4\u6233\uff0c\u5355\u4f4d\u4e3a\u79d2 \u7c7b\u578b\uff1a\u6570\u7ec4 |\n| datas | \u6587\u4ef6\u6570\u91cf\u5927\u5c0f\uff0c\u5355\u4f4d\u4e3a\u4e2a \u7c7b\u578b\uff1a\u6570\u7ec4 |\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### **\u8bf7\u6c42\u793a\u4f8b**\n\n```\nGET \/v6\/count?bucket=test07&begin=20170818140000&end=20170818151000&g=day HTTP\/1.1\nHost: api.qiniuapi.com\nUser-Agent: Go-http-client\/1.1\nContent-Type:application\/x-www-form-urlencoded\nX-Qiniu-Date: 20170818T071102Z\nAuthorization: Qiniu j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:Zm5BbTRF8h6tpv9ZADAPOBPYmbg=\nAccept-Encoding: gzip\n```\n\n\n\n\n\n### **\u54cd\u5e94\u793a\u4f8b**\n\n```\nHTTP\/1.1 200 OK\nContent-Length: 34\nConnection: keep-alive\nContent-Type: application\/json\nDate: Fri, 18 Aug 2017 07:11:02 GMT\nServer: nginx\nX-Log: COUNTER;CT:2;S:4;STAT:4;MERGEAPI:5;S:1;STAT:1;APIS:2;COUNTER;CT:48;S:3;STAT:3;APIS:4;S:132;STAT:132;MERGEAPI:133;COUNTER:1;CT:34;S:36;STAT:36;MERGEAPI:38;COUNTER;CT:505;S:507;STAT:507;MERGEAPI:509;MERGEAPI:686;APIS:1695\nX-Reqid: xxwAAPFkzXMn39sU\n\n{\n \"times\": [\n 1502985600\n ], \n \"datas\": [\n 2\n ]\n}\n```\n"}