Queries the statistics on the queries per second (QPS) of a website.

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 Yes DescribeDomainQPSList

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

ResourceGroupId String No rg-acfm2pz25js****

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

For more information about resource groups, see Create a resource group.

RegionId String No cn-hangzhou

The region ID of the instance. Valid values:

  • cn-hangzhou: mainland China, which indicates an Anti-DDoS Pro instance. This is the default value.
  • ap-southeast-1: outside mainland China, which indicates an Anti-DDoS Premium instance.
StartTime Long Yes 1582992000

The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.

Note This UNIX timestamp must indicate a point in time that is accurate to the minute.
EndTime Long Yes 1583683200

The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.

Note This UNIX timestamp must indicate a point in time that is accurate to the minute.
Interval Long Yes 1000

The interval for returning statistics. Unit: seconds.

Domain String No www.aliyun.com

The domain name of the website that you want to query. If you leave this parameter unspecified, the statistics on all domain names are queried.

Note The domain name must be added to Anti-DDoS Pro or Anti-DDoS Premium. You can call the DescribeDomains operation to query all the domain names that are added to Anti-DDoS Pro or Anti-DDoS Premium.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
DomainQPSList Array of DomainQPS

The statistics on the QPS of the website.

Index Long 0

The index number of the returned data.

Time Long 1582992000

The time when the statistics were collected. The value is a UNIX timestamp. Unit: seconds.

MaxAttackQps Long 37

The peak attack QPS.

AttackQps Long 1

The attack QPS.

MaxQps Long 130

The peak of total QPS.

MaxNormalQps Long 93

The peak of normal QPS.

TotalQps Long 1

The total QPS.

TotalCount Long 20008

The total number of queries.

CacheHits Long 0

The number of cache hits.

RequestId String 327F2ABB-104D-437A-AAB5-D633E29A8C51

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeDomainQPSList
&StartTime=1582992000
&EndTime=1583683200
&Interval=1000
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDomainQPSListResponse>
    <DomainQPSList>
        <Index>0</Index>
        <Time>1582992000</Time>
        <MaxAttackQps>37</MaxAttackQps>
        <AttackQps>1</AttackQps>
        <MaxQps>130</MaxQps>
        <MaxNormalQps>93</MaxNormalQps>
        <TotalQps>1</TotalQps>
        <TotalCount>20008</TotalCount>
        <CacheHits>0</CacheHits>
    </DomainQPSList>
    <RequestId>327F2ABB-104D-437A-AAB5-D633E29A8C51</RequestId>
</DescribeDomainQPSListResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "DomainQPSList" : [ {
    "Index" : 0,
    "Time" : 1582992000,
    "MaxAttackQps" : 37,
    "AttackQps" : 1,
    "MaxQps" : 130,
    "MaxNormalQps" : 93,
    "TotalQps" : 1,
    "TotalCount" : 20008,
    "CacheHits" : 0
  } ],
  "RequestId" : "327F2ABB-104D-437A-AAB5-D633E29A8C51"
}

Error codes

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