You can call this operation to query the number of queries per second (QPS) for one or more accelerated domains.

When you call this operation, follow these rules:
  • If you do not specify the StartTime or EndTime parameters, the QPS data within the last 24 hours is queried. If you specify both the StartTime and EndTime parameters, the QPS data within the specified time range is queried.
  • You can specify multiple domain names and separate them with commas (,).
  • The maximum time range for a data query is 90 days.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No DescribeDomainQpsData

The operation that you want to perform. Set the value to DescribeDomainQpsData.

DomainName String No test.test.com

The name of the accelerated domain for which you want to query QPS data. You can specify multiple accelerated domain names and separate them with commas (,).

If you do not specify this parameter, the QPS data of all accelerated domains are returned.

EndTime String No 2015-12-10T21:00Z

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.
Interval String No 300

The data sampling interval. Unit: seconds. The valid values vary, depending on the specified time range:

  • Less than 3 days: 300 (default), 3600, and 86400
  • 3 to 31 (exclusive) days: 3600 (default) and 86400
  • No less than 31 days: 86400 (default)

If you do not set this parameter or if you specify an invalid value, the default value is used.

IspNameEn String No unicom

The name of the network provider for your CDN service. You can call the DescribeCdnRegionAndIsp operation to query network providers. If you do not specify this parameter, the QPS data of accelerated domains for all network providers is queried.

LocationNameEn String No beijing

The name of the region where your CDN service is deployed. You can call the DescribeCdnRegionAndIsp operation to query region names. If you do not specify this parameter, the QPS data of the accelerated domains in all regions is queried.

StartTime String No 2015-12-10T20: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.
  • The time granularity for data aggregation is 5 minutes.

Response parameters

Parameter Type Example Description
DataInterval String 300

The data sampling interval. Unit: seconds.

DomainName String test.test.com

The name of the accelerated domain returned.

EndTime String 2015-12-10T21:00Z

The end of the time range during which the data was queried.

QpsDataInterval Array

The QPS data retrieved at each sampling interval.

DataModule

In XML format, this parameter indicates the QPS data retrieved at a sampling interval. In JSON format, this parameter indicates the QPS data retrieved at all sampling intervals.

AccDomesticValue String 0

The number of visits in mainland China.

AccOverseasValue String 0

The number of visits outside mainland China.

AccValue String 0

The total number of visits.

DomesticValue String 0

The QPS calculated based on the visits in mainland China.

HttpsAccDomesticValue String 1

The number of HTTPS requests received on L1 cache nodes in mainland China.

HttpsAccOverseasValue String 1

The number of HTTPS requests received on L1 cache nodes outside mainland China.

HttpsAccValue String 1

The number of HTTPS requests received on L1 cache nodes.

HttpsDomesticValue String 1

The QPS calculated based on the HTTPS requests received on L1 cache nodes in mainland China.

HttpsOverseasValue String 1

The QPS calculated based on the HTTPS requests received on L1 cache nodes outside mainland China.

HttpsValue String 1

The QPS calculated based on the HTTPS requests received on L1 cache nodes.

OverseasValue String 0

The QPS calculated based on the visits outside mainland China.

TimeStamp String 2015-12-10T21:00:00Z

The timestamp of the QPS data returned.

Value String 0

The QPS calculated based on the total visits.

RequestId String B8333EDB-4595-46E0-AFE9-29BAA290D0E0

The ID of the request.

StartTime String 2015-12-10T20:00Z

The beginning of the time range during which the QPS data was queried.

Examples

Sample requests

http://cdn.aliyuncs.com?Action=DescribeDomainQpsData
&DomainName=test.com
&StartTime=2015-12-10T20:00Z
&EndTime=2015-12-10T21:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDomainQpsDataResponse>
	  <QpsDataInterval>
		    <DataModule>
			      <TimeStamp>2015-12-10T21:00:00Z</TimeStamp>
			      <Value>0.56</Value>
			      <DynamicValue>0</DynamicValue>
			      <DynamicDomesticValue>0</DynamicDomesticValue>
			      <DynamicOverseasValue>0</DynamicOverseasValue>
			      <StaticValue>0</StaticValue>
			      <StaticDomesticValue>0</StaticDomesticValue>
			      <StaticOverseasValue>0</StaticOverseasValue>
		    </DataModule>
		    <DataModule>
			      <TimeStamp>2015-12-10T20:35:00Z</TimeStamp>
			      <Value>0.64</Value>
			      <DynamicValue>0</DynamicValue>
			      <DynamicDomesticValue>0</DynamicDomesticValue>
			      <DynamicOverseasValue>0</DynamicOverseasValue>
			      <StaticValue>0</StaticValue>
			      <StaticDomesticValue>0</StaticDomesticValue>
			      <StaticOverseasValue>0</StaticOverseasValue>
		    </DataModule>
		    <DataModule>
			      <TimeStamp>2015-12-10T20:50:00Z</TimeStamp>
			      <Value>0.4</Value>
			      <DynamicValue>0</DynamicValue>
			      <DynamicDomesticValue>0</DynamicDomesticValue>
			      <DynamicOverseasValue>0</DynamicOverseasValue>
			      <StaticValue>0</StaticValue>
			      <StaticDomesticValue>0</StaticDomesticValue>
			      <StaticOverseasValue>0</StaticOverseasValue>
		    </DataModule>
		    <DataModule>
			      <TimeStamp>2015-12-10T20:05:00Z</TimeStamp>
			      <Value>1.0033333333333334</Value>
			      <DynamicValue>0</DynamicValue>
			      <DynamicDomesticValue>0</DynamicDomesticValue>
			      <DynamicOverseasValue>0</DynamicOverseasValue>
			      <StaticValue>0</StaticValue>
			      <StaticDomesticValue>0</StaticDomesticValue>
			      <StaticOverseasValue>0</StaticOverseasValue>
		    </DataModule>
	  </QpsDataInterval>
	  <DomainName>test.com</DomainName>
	  <DataInterval>300</DataInterval>
	  <RequestId>BEA5625F-8FCF-48F4-851B-CA63946DA664</RequestId>
	  <StartTime>2015-12-10T20:00Z</StartTime>
	  <EndTime>2015-12-10T21:00Z</EndTime>
</DescribeDomainQpsDataResponse>

JSON format

{
	"QpsDataInterval":{
		"DataModule":[
			{
				"TimeStamp":"2015-12-10T21:00:00Z",
				"StaticValue":"0",
				"DynamicDomesticValue":"0",
				"Value":"0.56",
				"DynamicOverseasValue":"0",
				"StaticOverseasValue":"0",
				"StaticDomesticValue":"0",
				"DynamicValue":"0"
			},
			{
				"TimeStamp":"2015-12-10T20:35:00Z",
				"StaticValue":"0",
				"DynamicDomesticValue":"0",
				"Value":"0.64",
				"DynamicOverseasValue":"0",
				"StaticOverseasValue":"0",
				"StaticDomesticValue":"0",
				"DynamicValue":"0"
			},
			{
				"TimeStamp":"2015-12-10T20:50:00Z",
				"StaticValue":"0",
				"DynamicDomesticValue":"0",
				"Value":"0.4",
				"DynamicOverseasValue":"0",
				"StaticOverseasValue":"0",
				"StaticDomesticValue":"0",
				"DynamicValue":"0"
			},
			{
				"TimeStamp":"2015-12-10T20:05:00Z",
				"StaticValue":"0",
				"DynamicDomesticValue":"0",
				"Value":"1.0033333333333334",
				"DynamicOverseasValue":"0",
				"StaticOverseasValue":"0",
				"StaticDomesticValue":"0",
				"DynamicValue":"0"
			}
		]
	},
	"DataInterval":"300",
	"RequestId":"BEA5625F-8FCF-48F4-851B-CA63946DA664",
	"DomainName":"test.com",
	"EndTime":"2015-12-10T21:00Z",
	"StartTime":"2015-12-10T20:00Z"
}

Error codes

For a list of error codes, visit the API Error Center.