Queries the proportions of HTTP status codes based on back-to-origin statistics that are collected every 1 minute.

Note
  • The time range specified by the StartTime and EndTime parameters in each query cannot exceed 24 hours.
  • If you do not set StartTime or EndTime, data within the last hour is queried.
  • You can query data up to the last 7 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 DescribeDcdnDomainRealTimeSrcHttpCodeData

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

DomainName String Yes example.com,example1.com

The accelerated domain names. Separate multiple accelerated domain names with commas (,).

StartTime String No 2019-11-30T05:39: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.

By default, the system collects data within the last hour.

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.

IspNameEn String No unicom

The name of the Internet service provider for Dynamic Route for CDN (DCDN).

If you do not set this parameter, all ISPs are queried. You can call the DescribeCdnRegionAndIsp operation to query the most recent ISP list.

LocationNameEn String No beijing

The name of the region.

If you do not set this parameter, all regions are queried. You can call the DescribeCdnRegionAndIsp operation to query the most recent region list.

Response parameters

Parameter Type Example Description
DataInterval String 60

The time interval between the data entries. Unit: seconds.

DomainName String example.com,example1.com

The accelerated domain name.

EndTime String 2019-11-30T05:40:00Z

The end of the time range that was queried.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

RealTimeSrcHttpCodeData Array of UsageData

The proportions of HTTP status codes collected at each time interval.

UsageData
TimeStamp String 2019-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.

Count String 2

The number of HTTP status codes.

Proportion String 66.046511627907

The proportion of the HTTP status code.

RequestId String BC858082-736F-4A25-867B-E5B67C85ACF7

The ID of the request.

StartTime String 2019-11-30T05:33:00Z

The beginning of the time range that was queried.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainRealTimeSrcHttpCodeData
&DomainName=example.com,example1.com
&StartTime=2019-11-30T05:39:00Z
&EndTime=2019-11-30T05:40:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainRealTimeSrcHttpCodeDataResponse>
  <RealTimeSrcHttpCodeData>
        <UsageData>
              <TimeStamp>2019-11-30T05:40:00Z</TimeStamp>
              <Value>
                    <RealTimeSrcCodeProportionData>
                          <Proportion>66.046511627907</Proportion>
                          <Code>200</Code>
                          <Count>2</Count>
                    </RealTimeSrcCodeProportionData>
              </Value>
        </UsageData>
  </RealTimeSrcHttpCodeData>
  <DataInterval>60</DataInterval>
  <RequestId>BC858082-736F-4A25-867B-E5B67C85ACF7</RequestId>
  <DomainName>example.com,example1.com</DomainName>
  <EndTime>2019-11-30T05:40:00Z</EndTime>
  <StartTime>2019-11-30T05:33:00Z</StartTime>
</DescribeDcdnDomainRealTimeSrcHttpCodeDataResponse>

JSON format

{
    "RealTimeSrcHttpCodeData": {
        "UsageData": 
            {
                "TimeStamp": "2019-11-30T05:40:00Z",
                "Value": {
                    "RealTimeSrcCodeProportionData": 
                        {
                            "Proportion": "66.046511627907",
                            "Code": "200",
                            "Count":"2"
                        }

              }
            }
    },
    "DataInterval": "60",
    "RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7",
    "DomainName": "example.com,example1.com",
    "EndTime": "2019-11-30T05:40:00Z",
    "StartTime": "2019-11-30T05:33:00Z"
}

Error codes

HttpCode Error code Error message Description
400 MissingTimeParameter The StartTime and EndTime must be both specified. The error message returned because the StartTime or EndTime parameter is not set.
400 InvalidStartTime.Malformed The specified StartTime parameter is invalid. The error message returned because the format of the specified start time is invalid. You must specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400 InvalidEndTime.Malformed The specified EndTime is invalid. The error message returned because the format of the specified end time is invalid. You must specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400 InvalidEndTime.Mismatch The specified EndTime is earlier than the StartTime. The error message returned because the end time is earlier than the start time.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified start time is invalid.

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