Querying Top User Agent Statistics of a Domain Name
Function
-
This API is used to query top user agent statistics of a domain name.
Calling Method
For details, see Calling APIs.
URI
GET /v1.0/cdn/statistics/top-uas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
start_time |
Yes |
Long |
|
end_time |
Yes |
Long |
|
domain_name |
Yes |
String |
Domain name list. Use commas (,) to separate multiple domain names, for example, www.test1.com,www.test2.com. all indicates that all domain names are queried. If no data is available for a domain name within the query period, no information about the domain name is returned. |
group_by |
No |
String |
Data grouping mode. This parameter can be set to domain. By default, data is not grouped. |
stat_type |
Yes |
String |
|
service_area |
No |
String |
Region. Possible values: mainland_china (Chinese mainland, default) and outside_mainland_china (outside the Chinese mainland). |
enterprise_project_id |
No |
String |
ID of the enterprise project to which the resource belongs. This parameter is valid only when the enterprise project function is enabled. The value all indicates all projects. This parameter is mandatory when you use an IAM user to call this API. |
include_ratio |
No |
Boolean |
Whether the percentage data is included. The default value is false. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
top_ua_summary |
Array of TopUaSummary objects |
Detailed data. |
Parameter |
Type |
Description |
---|---|---|
ua |
String |
User agent value. |
value |
Long |
Return value of a query. Traffic unit: byte. |
ratio |
Double |
Proportion of the traffic (or number of requests) from this user agent to the total traffic (or number of requests) in this query. The value is accurate to four decimal places. |
Status code: default
Parameter |
Type |
Description |
---|---|---|
error |
ErrMsg object |
Error code and error message. |
Example Requests
Querying top user agent statistics of a domain name
GET https://cdn.myhuaweicloud.com/v1.0/cdn/statistics/top-uas?&start_time=1577808000000&end_time=1577894400000&domain_name=www.test1.com&stat_type=flux
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