Creating an Asynchronous Statistics Export Task
Function
This API is used to create an asynchronous statistics export task. SDR data and top URL statistics can be exported.
Calling Method
For details, see Calling APIs.
URI
POST /v1/cdn/statistics/export-tasks
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
action |
No |
String |
Definition Rule action. Constraints N/A |
|
domain_name |
No |
String |
List of subscribed domain names, which are separated by commas (.). If this parameter is set to all, operations reports are subscribed to for all domain names under the account. |
|
start_time |
No |
Long |
Query start time. The value is the number of milliseconds since the UNIX epoch (Jan 1, 1970). |
|
end_time |
No |
Long |
Query end time. The value is the number of milliseconds since the UNIX epoch (Jan 1, 1970). |
|
group_by |
No |
String |
Data grouping mode. This parameter can be set to domain. By default, data is not grouped. |
|
interval |
No |
Long |
Query interval, in seconds. |
|
service_area |
No |
String |
Definition Service area of the domain name. Constraints If the service area is Chinese mainland or global, the domain name must be licensed by the MIIT. Value Range
Default Value mainland_china |
|
stat_type |
No |
String |
Statistics types. Possible values: flux (traffic) and req_num (total requests). |
|
country |
No |
String |
|
|
province |
No |
String |
Province code. This parameter is valid when country is set to cn (China). Use commas (,) to separate multiple codes. all indicates all provinces are queried. For details about the values, see the appendix. |
|
isp |
No |
String |
Carrier. If the state/province of the IP address is unknown, null is returned. |
|
language |
No |
String |
Language. The value can be zh (Chinese, default value) or en (English). |
Response Parameters
Status code: 200
Success response.
Status code: default
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
ErrMsg object |
Error code and error message. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Success response. |
|
default |
Error response. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot