You can call this operation to query the QPS data based on the back-to-origin statistics 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 the StartTime and the EndTime parameters, the QPS data within the specified time range is queried. The StartTime and the EndTime parameters must be specified together.
  • You can specify multiple domain names and separate them with commas (,).
  • You can only query the data within the last 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 Yes DescribeDomainSrcQpsData

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

DomainName String No example.com

The name of the accelerated domain for which the QPS data is queried. 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 under your account is returned.

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.

The minimum data granularity is five minutes. If you do not specify this parameter, the QPS data generated within the last 24 hours is queried.

EndTime String No 2019-11-30T05:40: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 the specified value is invalid, the default value is used.

Response parameters

Parameter Type Example Description
RequestId String 7CBCD6AD-B016-42E5-AE0B-B3731DE8F755

The ID of the request.

DomainName String example.com

The name of the accelerated domain for which the QPS data was returned.

StartTime String 2015-12-10T20:00:00Z

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

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

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

DataInterval String 300

The data sampling interval. Unit: seconds.

SrcQpsDataPerInterval Array

The back-to-origin QPS data returned at each interval.

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

The timestamp of the data.

Value String 0

The number of queries per second.

Examples

Sample requests

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

Sample success responses

XML format

<DomainName>example.com</DomainName>
<DataInterval>300</DataInterval>
<SrcQpsDataPerInterval>
    <DataModule>
        <TimeStamp>2015-12-10T21:00:00Z</TimeStamp>
        <Value>0</Value>
    </DataModule>
    <DataModule>
        <TimeStamp>2015-12-10T20:35:00Z</TimeStamp>
        <Value>0</Value>
    </DataModule>
</SrcQpsDataPerInterval>
<RequestId>7CBCD6AD-B016-42E5-AE0B-B3731DE8F755</RequestId>
<StartTime>2015-12-10T20:00:00Z</StartTime>
<EndTime>2015-12-10T21:00:00Z</EndTime>

JSON format

{
    "DomainName": "example.com",
    "DataInterval": "300",
    "SrcQpsDataPerInterval": {
        "DataModule": [
            {
                "TimeStamp": "2015-12-10T21:00:00Z",
                "Value": "0"
            },
            {
                "TimeStamp": "2015-12-10T20:35:00Z",
                "Value": "0"
            }
        ]
    },
    "RequestId": "7CBCD6AD-B016-42E5-AE0B-B3731DE8F755",
    "StartTime": "2015-12-10T20:00:00Z",
    "EndTime": "2015-12-10T21:00:00Z"
}

Error codes

HTTP status code Error code Error message Description
400 MissingParameter StartTime and EndTime can not be single. The error message returned because the StartTime and EndTime parameters must be specified together.
400 InvalidStartTime.Malformed Specified StartTime is malformed. The error message returned because the specified start time is incorrectly formatted. For more information about the time format, see the Request parameters section.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The error message returned because the format of the end time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidEndTime.Mismatch Specified end time does not math the specified start time. The error message returned because the specified end time cannot be earlier than or equal to the specified start time.
400 InvalidStartTime.ValueNotSupported The specified value of parameter StartTime is not supported. The error message returned because the specified start time is not supported.

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