Queries the top N domain names ranked by network traffic. You can query data collected within the last 30 days.
The statistical analysis feature of Alibaba Cloud CDN is no longer available. The API operations related to the statistical analysis feature are no longer maintained. We recommend that you do not use the API operations because data may be missing or inaccurate. You can use the operations report feature to analyze data.
- If you do not set StartTime or EndTime, data within the current month is queried. If you set both StartTime and EndTime, data within the specified time range is queried.
- You can call this operation up to 100 times per second per account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeTopDomainsByFlow |
The operation that you want to perform. Set the value to DescribeTopDomainsByFlow. |
StartTime | String | No | 2019-12-22T08:00:00Z |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note Set StartTime to UTC time in the yyyy-MM-ddTHH:mm:ssZ format. For example, if the
local time is 00:00, June 1, 2021, set StartTime to 2021-05-31T16:00:00Z.
|
EndTime | String | No | 2019-12-23T08:00:00Z |
The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note The end time must be later than the start time.
|
Limit | Long | No | 20 |
The maximum number of domain names to query. Valid values: 1 to 100. Default value: 20. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DomainOnlineCount | Long | 68 |
The total number of accelerated domain names that are in the Enabled state within the current Alibaba Cloud account. |
EndTime | String | 2019-12-23T08:00:00Z |
The end of the time range during which data was queried. |
StartTime | String | 2019-12-22T08:00:00Z |
The beginning of the time range during which data was queried. |
RequestId | String | 4E09C5D7-E1CF-4CAA-A45E-8727F4C8FD70 |
The ID of the request. |
DomainCount | Long | 68 |
The total number of accelerated domain names that belong to the current Alibaba Cloud account. |
TopDomains | Array of TopDomain |
The top N domain names ranked by network traffic. |
|
TopDomain | |||
MaxBps | Float | 22139626 |
The peak bandwidth value. |
Rank | Long | 1 |
The ranking of the accelerated domain name. |
TotalAccess | Long | 107784230 |
The number of visits to the accelerated domain name. |
TrafficPercent | String | 30.64191989360235 |
The proportion of the amount of network traffic consumed for visiting the web page. |
DomainName | String | example.com |
The accelerated domain name. |
TotalTraffic | String | 2043859876683.9001 |
The total amount of network traffic. |
MaxBpsTime | String | 1457111400 |
The time when the bandwidth reached the peak value. |
Examples
Sample requests
http(s)://cdn.aliyuncs.com/?Action=DescribeTopDomainsByFlow
&StartTime=2019-12-22T08:00:00Z
&EndTime=2019-12-23T08:00:00Z
&Limit=5
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeTopDomainsByFlowResponse>
<DomainCount>4</DomainCount>
<DomainOnlineCount>4</DomainOnlineCount>
<RequestId>6796A2B4-15A7-4142-85C0-5A93406034B5</RequestId>
<TopDomains>
<TopDomain>
<MaxBps>26.752000000000002</MaxBps>
<Rank>3</Rank>
<TrafficPercent>0.000910078753253719</TrafficPercent>
<TotalTraffic>2003</TotalTraffic>
<TotalAccess>2</TotalAccess>
<DomainName>example.com</DomainName>
<MaxBpsTime>2019-12-22T20:50:00Z</MaxBpsTime>
</TopDomain>
</TopDomains>
<EndTime>2019-12-23T08:00:00Z</EndTime>
<StartTime>2019-12-22T08:00:00Z</StartTime>
</DescribeTopDomainsByFlowResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DomainCount" : 4,
"DomainOnlineCount" : 4,
"RequestId" : "6796A2B4-15A7-4142-85C0-5A93406034B5",
"TopDomains" : {
"TopDomain" : [ {
"MaxBps" : "26.752000000000002",
"Rank" : 3,
"TrafficPercent" : "0.000910078753253719",
"TotalTraffic" : 2003,
"TotalAccess" : 2,
"DomainName" : "example.com",
"MaxBpsTime" : "2019-12-22T20:50:00Z"
} ]
},
"EndTime" : "2019-12-23T08:00:00Z",
"StartTime" : "2019-12-22T08:00:00Z"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The error message returned because the format of the specified end time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The error message returned because the specified start time is invalid. Set a valid value and try again. |
For a list of error codes, visit the API Error Center.