Queries traffic usage through each Internet service provider (ISP) and the number of visits in each region. The resolution of the data is one minute. The maximum time range to query for this operation is 10 minutes.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
dcdn:DescribeDcdnDomainRealTimeDetailData | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DomainName | string | Yes | The accelerated domain name. Separate multiple accelerated domain names with commas (,). | example.com |
StartTime | string | Yes | 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. | 2019-11-30T05:33:00Z |
EndTime | string | Yes | 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, and the maximum time range to query is 10 minutes.
| 2019-11-30T05:40:00Z |
Field | string | Yes | The type of information that you want to query. Separate multiple types with commas (,). Valid values:
| bps |
LocationNameEn | string | No | The name of the region. You can call the DescribeDcdnRegionAndIsp operation to query the region name. If you leave this parameter empty, all regions are queried. | beijing |
IspNameEn | string | No | The name of the ISP. You can call the DescribeDcdnRegionAndIsp operation to query the ISP name. If you leave this parameter empty, all ISPs are queried. | unicom |
Merge | string | No | Specifies whether to return a summary value. Valid values:
Default value: false. | true |
MergeLocIsp | string | No | Specifies whether to return a summary value of LocationNameEn and IspNameEn. Valid values:
Default value: false. | true |
Response parameters
Fields in Data
Field | Type | Description | Example |
---|---|---|---|
domain_name | String | The domain name that was queried. | example.com |
isp | String | The name of the ISP. | unicom |
location | String | The name of the region. | qingdao |
qps | Long | The QPS. | 40 |
bps | Long | The bandwidth value. | 100 |
http_code | Map | The HTTP status codes returned. The key indicates the HTTP status code and the value indicates the number of the HTTP status codes. | {"200": 1, "304": 2, "403": 3} |
time_stp | String | The beginning of the time range that was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. | 2022-10-20T04:00:00Z |
Examples
Sample success responses
JSON
format
{
"Data": "[\n {\n \"time_stp\": \"2018-06-05T20:00:00Z\",\n \"domain_name\": \"example.com\",\n \"location\": \"Guangdong\",\n \"isp\": \"telecom\",\n \"qps\": 10.0\n },\n {\n \"time_stp\": \"2018-06-05T20:00:00Z\",\n \"domain_name\": \"example.com\",\n \"location\": \"Jiangsu\",\n \"isp\": \"unicom\",\n \"qps\": 11.1\n }\n ]",
"RequestId": "A603F324-7A05-4FB3-ADF3-2563233D26CC"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | You must set both the start time and the end time. |
400 | InvalidStartTime.Malformed | The specified StartTime parameter is invalid. | The format of the specified start time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | The format of the specified end time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
400 | InvalidParameter | The specified parameter is invalid. | A parameter is set to an invalid value. |
400 | InvalidTime.Malformed | Specified StartTime or EndTime is malformed. | The format of the specified start time or end time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
400 | InvalidDomainName.Malformed | The specific DomainName is invalid. | The specified domain name is invalid. |
400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | The specified start time is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-07-04 | The Error code has changed | see changesets | ||||
|