Queries bandwidth data of accelerated domain names by protocol type.
Operation description
Currently, this operation is supported only in the China (Shanghai) region.
Batch queries are supported. You can query data of up to 500 domain names at a time.
If you do not specify
StartTimeandEndTime, this operation returns data of the last 24 hours by default. If you specifyStartTimeandEndTime, this operation returns data of the specified time range.
Time granularity of returned data
If you specify StartTime and EndTime without configuring Interval, the default time granularity, the maximum time range for historical data queries, and the data delay are as follows:
| Time granularity | Time range per query | Maximum time range for historical data queries | Data delay |
| 5 minutes | Time range per query < 3 days | 93 days | 15 minutes |
| 1 hour | 3 days ≤ Time range per query < 31 days | 186 days | Typically 3 to 4 hours |
| 1 day | 31 days ≤ Time range per query ≤ 366 days | 366 days | Typically 4 hours, up to 24 hours |
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribeVodDomainBpsDataByLayer |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
No |
The accelerated domain name to query.
|
example.com |
| 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. |
2019-01-23T12:35:12Z |
| EndTime |
string |
No |
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. |
2019-01-23T12:40:12Z |
| Interval |
string |
No |
The time granularity of the data. Unit: seconds. Valid values: 300, 3600, and 86400. If you do not specify this parameter or specify an unsupported value, the default value is used. The supported time granularity varies based on the time range specified by
|
300 |
| IspNameEn |
string |
No |
The name of the Internet service provider (ISP) in English. If you do not specify this parameter, data of all ISPs is queried by default. |
unicom |
| LocationNameEn |
string |
No |
The name of the region in English. If you do not specify this parameter, data of all regions is queried by default. |
beijing |
| Layer |
string |
No |
The protocol type. You can specify the protocol type at the network layer or application layer. Default value:
Network layer values:
Application layer values:
|
IPv4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DataInterval |
integer |
The time interval between each record, which is the time granularity of the data. Unit: seconds. |
300 |
| RequestId |
string |
The request ID. |
25818875-5F78-4A*****F6-D7393642CA58 |
| BpsDataInterval |
object |
||
| DataModule |
array<object> |
The bandwidth data (bps) for each time interval. |
|
|
object |
|||
| Value |
number |
The peak bandwidth. Unit: bit/s. |
75.33 |
| TrafficValue |
integer |
The total traffic. Unit: bytes. |
1000 |
| TimeStamp |
string |
The timestamp of the data returned. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC. |
2024-02-08T10:09:19Z |
Examples
Success response
JSON format
{
"DataInterval": 300,
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
"BpsDataInterval": {
"DataModule": [
{
"Value": 75.33,
"TrafficValue": 1000,
"TimeStamp": "2024-02-08T10:09:19Z"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The start time is in an invalid format. |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The end time is in an invalid format. |
| 400 | InvalidEndTime.Mismatch | StartTime or EndTime is mismatch. | The start time and end time do not match. |
| 400 | InvalidStartTime.ValueNotSupported | The specified start time has invalid value. | The start time is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.