Queries the domains of a user ranked by traffic volume by calling DescribeLiveTopDomainsByFlow.
Operation description
If you do not specify StartTime or EndTime, data for the current month is returned by default. You can also query data for a specified time range. Both StartTime and EndTime must be specified together.
You can query data for up to 90 days.
QPS limit
The QPS limit for a single user on this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveTopDomainsByFlow |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| StartTime |
string |
No |
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. The minimum data granularity is 5 minutes. If you do not specify this parameter, data for the current month is returned by default. |
2018-03-17T16:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. |
2018-03-20T16:00:00Z |
| Limit |
integer |
No |
The maximum number of domain names to return. Default value: 20. Valid values: 1 to 100. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DomainOnlineCount |
integer |
The total number of running domain names under the account. |
1 |
| EndTime |
string |
The end time. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC. |
2018-03-20T16:00:00Z |
| StartTime |
string |
The start time. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC. |
2018-03-17T16:00:00Z |
| RequestId |
string |
The request ID. |
33834C3E-388E-5FFE-A8AE-63575035C064 |
| DomainCount |
integer |
The total number of domain names under the account. |
1 |
| TopDomains |
object |
||
| TopDomain |
array<object> |
The list of domain names ranked by traffic. |
|
|
object |
The list of domain names ranked by traffic. |
||
| MaxBps |
integer |
The peak bandwidth. |
22139626 |
| Rank |
integer |
The rank. |
1 |
| TotalAccess |
integer |
The number of access requests. |
107784230 |
| TrafficPercent |
string |
The traffic percentage. |
30.64191989360235 |
| DomainName |
string |
The domain name. |
example.com |
| TotalTraffic |
string |
The total traffic. |
2043859876683.9001 |
| MaxBpsTime |
string |
The time when the peak bandwidth was reached. |
1457111400 |
Examples
Success response
JSON format
{
"DomainOnlineCount": 1,
"EndTime": "2018-03-20T16:00:00Z",
"StartTime": "2018-03-17T16:00:00Z",
"RequestId": "33834C3E-388E-5FFE-A8AE-63575035C064",
"DomainCount": 1,
"TopDomains": {
"TopDomain": [
{
"MaxBps": 22139626,
"Rank": 1,
"TotalAccess": 107784230,
"TrafficPercent": "30.64191989360235",
"DomainName": "example.com",
"TotalTraffic": "2043859876683.9001",
"MaxBpsTime": "1457111400"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.