Queries the proportions of HTTP status codes based on back-to-origin statistics that are collected at an interval of one minute.

Note
  • The duration specified by the StartTime and EndTime parameters for each query cannot exceed 24 hours.
  • If you do not specify StartTime and EndTime, the data within the last hour is returned.
  • You can specify multiple domain names to accelerate and separate them with commas (,).
  • You can only query the data for the last seven days.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically 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 domain names to accelerate. Separate multiple domain names to accelerate with commas (,).

StartTime String No 2019-11-30T05:39:00Z

The start of the time range during which the requested data was collected. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

By default, the data that was collected within the last hour is returned.

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

The end of the time range during which the requested data was collected. The time follows 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 (ISP). You can call the DescribeCdnRegionAndIsp operation to query ISPs. If you do not specify this parameter, the operation returns the data of all the ISPs.

LocationNameEn String No beijing

The name of the region. You can call the DescribeCdnRegionAndIsp operation to query regions. If you do not specify this parameter, the operation returns the data of all the regions.

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 domain name to accelerate for which the data was returned.

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

The end of the time range during which the requested data was collected. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

RealTimeSrcHttpCodeData Array of UsageData

The proportions of HTTP status codes for each interval.

UsageData
TimeStamp String 2019-11-30T05:40:00Z

The timestamp of the data.

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 start of the time range during which the requested data was collected. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Examples

Sample requests

http://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 and EndTime parameters must be specified together.
400 InvalidStartTime.Malformed The specified StartTime parameter is invalid. The error message returned because the specified value of the StartTime parameter is invalid. 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 specified value of the EndTime parameter is invalid. 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 specified value of the EndTime parameter is earlier than that of the StartTime parameter.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified start time is not supported. Specify a valid value.

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