Queries the proportions of HTTP status codes returned during back-to-origin routing.
Usage notes
- The maximum number of times that each user can call this operation per second is 10.
- If you do not set StartTime or EndTime, data collected within the last hour is queried. If you set both StartTime and EndTime, data collected within the specified time range is queried.
The time granularity varies with the time range specified by the StartTime and EndTime parameters. The following table describes the time period within which historical data is available and the data delay.
Time granularity |
Historical data available |
Time range to query |
Data delay |
---|---|---|---|
1 minute |
1 hour |
7 days |
5 minutes |
5 minutes |
3 days |
93 days |
15 minutes |
1 hour |
31 days |
186 days |
4 hours |
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDomainRealTimeSrcHttpCodeData |
The operation that you want to perform. Set the value to DescribeDomainRealTimeSrcHttpCodeData. |
DomainName | String | Yes | example.com |
You can specify multiple domain names and separate them with commas (,). You can specify at most 100 domain names in each call. |
StartTime | String | No | 2019-11-30T04:40:00Z |
The start 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. Note The end time must be later than the start time.
|
IspNameEn | String | No | unicom |
The name of the Internet Service Provider (ISP). 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 regions. 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 | BC858082-736F-4A25-867B-E5B67C85ACF7 |
The ID of the request. |
DomainName | String | example.com |
The accelerated domain name. |
DataInterval | String | 60 |
The time interval between the data entries returned. Unit: seconds. |
RealTimeSrcHttpCodeData | Array of UsageData |
The proportions of HTTP status codes at each time interval. |
|
UsageData | |||
TimeStamp | String | 2015-11-30T05:40:00Z |
The timestamp of the data returned. |
Value | Array of RealTimeSrcCodeProportionData |
The proportions of HTTP status codes. |
|
RealTimeSrcCodeProportionData | |||
Code | String | 200 |
The HTTP status code. |
Proportion | String | 0.62015503875969 |
The proportion of the HTTP status code. |
Count | String | 100 |
The total number of HTTP status codes returned. |
Examples
Sample requests
http://cdn.aliyuncs.com/?Action=DescribeDomainRealTimeSrcHttpCodeData
&DomainName=example.com,example.org
&StartTime=2019-11-30T05:39:00Z
&EndTime=2019-11-30T05:40:00Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDomainRealTimeSrcHttpCodeDataResesponse>
<RealTimeSrcHttpCodeData>
<UsageData>
<TimeStamp>2019-11-30T05:40:00Z</TimeStamp>
<Value>
<RealTimeSrcCodeProportionData>
<Proportion>66.046511627907</Proportion>
<Code>200</Code>
<Count>100</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>4.72868217054264</Proportion>
<Code>206</Code>
<Count>101</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>0.155038759689922</Proportion>
<Code>302</Code>
<Count>112</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>0.62015503875969</Proportion>
<Code>304</Code>
<Count>120</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>28.4496124031008</Proportion>
<Code>500</Code>
<Count>200</Count>
</RealTimeSrcCodeProportionData>
</Value>
</UsageData>
<UsageData>
<TimeStamp>2019-11-30T05:39:00Z</TimeStamp>
<Value>
<RealTimeSrcCodeProportionData>
<Proportion>66.046511627907</Proportion>
<Code>200</Code>
<Count>100</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>4.72868217054264</Proportion>
<Code>206</Code>
<Count>101</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>0.155038759689922</Proportion>
<Code>302</Code>
<Count>112</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>0.62015503875969</Proportion>
<Code>304</Code>
<Count>120</Count>
</RealTimeSrcCodeProportionData>
<RealTimeSrcCodeProportionData>
<Proportion>28.4496124031008</Proportion>
<Code>500</Code>
<Count>200</Count>
</RealTimeSrcCodeProportionData>
</Value>
</UsageData>
</RealTimeSrcHttpCodeData>
<DataInterval>60</DataInterval>
<RequestId>BC858082-736F-4A25-867B-E5B67C85ACF7</RequestId>
<DomainName>example.com,example.org</DomainName>
<EndTime>2019-11-30T05:40:00Z</EndTime>
<StartTime>2019-11-30T05:33:00Z</StartTime>
</DescribeDomainRealTimeSrcHttpCodeDataResesponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RealTimeSrcHttpCodeData": {
"UsageData": [
{
"TimeStamp": "2019-11-30T05:40:00Z",
"Value": {
"RealTimeSrcCodeProportionData": [
{
"Proportion": "66.046511627907",
"Code": "200"
"Count": "100"
},
{
"Proportion": "4.72868217054264",
"Code": "206"
"Count": "101"
},
{
"Proportion": "0.155038759689922",
"Code": "302"
"Count": "112"
},
{
"Proportion": "0.62015503875969",
"Code": "304"
"Count": "120"
},
{
"Proportion": "28.4496124031008",
"Code": "500"
"Count": "200"
}
]
}
},
{
"TimeStamp": "2019-11-30T05:39:00Z",
"Value": {
"RealTimeSrcCodeProportionData": [
{
"Proportion": "66.046511627907",
"Code": "200"
"Count": "100"
},
{
"Proportion": "4.72868217054264",
"Code": "206"
"Count": "101"
},
{
"Proportion": "0.155038759689922",
"Code": "302"
"Count": "112"
},
{
"Proportion": "0.62015503875969",
"Code": "304"
"Count": "120"
},
{
"Proportion": "28.4496124031008",
"Code": "500"
"Count": "200"
}
]
}
}
]
},
"DataInterval": "60",
"RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7",
"DomainName": "example.com,example.org",
"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.