Queries the number of queries per second (QPS) for one or more accelerated domains. Data is collected every 5 minutes.
Usage notes
- The maximum number of times that each user can call this operation per second is 100.
- If you do not set StartTime or EndTime, data collected within the last 24 hours is queried. If you set both StartTime and EndTime, data collected within the specified time range is queried.
The time granularity supported by the Interval parameter, the maximum time period within which historical data is available, and the data delay vary with the time range to query, as described in the following table.
Time granularity |
Time range to query |
Historical data available |
Data delay |
---|---|---|---|
5 minutes |
3 days |
93 days |
15 minutes |
1 hour |
31 days |
186 days |
4 hours |
1 day |
366 days |
366 days |
04:00 on the next day |
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDomainQpsData |
The operation that you want to perform. Set the value to DescribeDomainQpsData. |
DomainName | String | No | example.com |
You can specify multiple domain names and separate them with commas (,). You can specify at most 500 domain names in each call. By default, this operation queries the number of queries per second for all accelerated domain names that belong to your Alibaba Cloud account. |
StartTime | String | No | 2019-11-30T05:33: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. |
EndTime | String | No | 2019-11-30T05:40: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. The end time must be later than the start time. |
Interval | String | No | 300 |
The time interval between the data entries. Unit: seconds. The time granularity varies with the time range to query. Supported values: 300 (5 minutes), 3600 (1 hour), and 86400 (1 day). For more information, see Usage notes. |
IspNameEn | String | No | unicom |
The name of the Internet service provider (ISP) for your Alibaba Cloud CDN service. You can call the DescribeCdnRegionAndIsp operation to query ISPs. If you do not set this parameter, all ISPs are queried. |
LocationNameEn | String | No | beijing |
The name of the region. You can call the DescribeCdnRegionAndIsp operation to query the most recent region list. If you do not set this parameter, all regions are queried. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
EndTime | String | 2019-11-30T05:40:00Z |
The end of the time range that was queried. |
StartTime | String | 2019-11-30T05:33:00Z |
The beginning of the time range that was queried. |
RequestId | String | B8333EDB-4595-46E0-AFE9-29BAA290D0E0 |
The ID of the request. |
DomainName | String | example.com |
The accelerated domain name. |
DataInterval | String | 300 |
The time interval between the data entries returned. Unit: seconds. |
QpsDataInterval | Array of DataModule |
The number of queries per second at each time interval. |
|
DataModule | |||
AccValue | String | 0 |
The total number of requests. |
AccDomesticValue | String | 0 |
The number of requests in the Chinese mainland. |
AccOverseasValue | String | 0 |
The number of requests outside the Chinese mainland. |
HttpsValue | String | 1 |
The number of queries per second that is calculated based on the HTTPS requests sent to L1 edge nodes. |
HttpsOverseasValue | String | 1 |
The number of queries per second that is calculated based on the HTTPS requests sent to L1 edge nodes outside the Chinese mainland. |
DomesticValue | String | 0 |
The number of queries per second in the Chinese mainland. |
HttpsAccOverseasValue | String | 1 |
The number of HTTPS requests sent to L1 edge nodes outside the Chinese mainland. |
HttpsDomesticValue | String | 1 |
The number of queries per second that is calculated based on the HTTPS requests sent to L1 edge nodes in the Chinese mainland. |
HttpsAccValue | String | 1 |
The total number of HTTPS requests sent to L1 edge nodes. |
Value | String | 0 |
The total number of queries per second. |
OverseasValue | String | 0 |
The number of queries per second outside the Chinese mainland. |
TimeStamp | String | 2019-11-30T05:40:00Z |
The timestamp of the data returned. |
HttpsAccDomesticValue | String | 1 |
The number of HTTPS requests sent to L1 edge nodes in the Chinese mainland. |
Examples
Sample requests
http(s)://cdn.aliyuncs.com/?Action=DescribeDomainQpsData
&DomainName=example.com
&StartTime=2019-11-30T05:33:00Z
&EndTime=2019-11-30T05:40:00Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDomainQpsDataResponse>
<QpsDataInterval>
<DataModule>
<HttpsOverseasValue>0</HttpsOverseasValue>
<TimeStamp>2019-11-30T05:35:00Z</TimeStamp>
<HttpsAccOverseasValue>0</HttpsAccOverseasValue>
<Value>0.006666666666666667</Value>
<OverseasValue>0</OverseasValue>
<HttpsDomesticValue>0</HttpsDomesticValue>
<AccOverseasValue>0</AccOverseasValue>
<AccValue>2</AccValue>
<HttpsAccValue>0</HttpsAccValue>
<DomesticValue>0.006666666666666667</DomesticValue>
<HttpsAccDomesticValue>0</HttpsAccDomesticValue>
<HttpsValue>0</HttpsValue>
</DataModule>
</QpsDataInterval>
<DataInterval>300</DataInterval>
<RequestId>C2416D6C-B10A-474C-8FE8-0F9EF7ACA674</RequestId>
<EndTime>2019-11-30T05:40:00Z</EndTime>
<StartTime>2019-11-30T05:33:00Z</StartTime>
</DescribeDomainQpsDataResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"QpsDataInterval" : {
"DataModule" : [ {
"HttpsOverseasValue" : 0,
"TimeStamp" : "2019-11-30T05:35:00Z",
"HttpsAccOverseasValue" : 0,
"Value" : "0.006666666666666667",
"OverseasValue" : 0,
"HttpsDomesticValue" : 0,
"AccOverseasValue" : 0,
"AccValue" : 2,
"HttpsAccValue" : 0,
"DomesticValue" : "0.006666666666666667",
"HttpsAccDomesticValue" : 0,
"HttpsValue" : 0
} ]
},
"DataInterval" : 300,
"RequestId" : "C2416D6C-B10A-474C-8FE8-0F9EF7ACA674",
"EndTime" : "2019-11-30T05:40:00Z",
"StartTime" : "2019-11-30T05:33:00Z"
}
Error codes
For a list of error codes, visit the API Error Center.