You can call this operation to query the proportions of HTTP status codes based on back-to-origin statistics with a time granularity of one minute.

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 name of the accelerated domain. Separate multiple IP addresses 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.

If you do not set this parameter, the data within the last hour is queried.

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 (ISP) for your Dynamic Route for CDN (DCDN) service. You can call the DescribeCdnRegionAndIsp operation to query the ISP name. 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
DataInterval String 60

The interval between the returned entries. Unit: seconds.

DomainName String example.com,example1.com

The names of accelerated domains that were queried.

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 displayed in UTC.

RealTimeSrcHttpCodeData Array

The proportions of HTTP status codes at each sampling interval.

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

The timestamp of the queried data.

Value Array

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 returned.

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 displayed 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 at the same time.
400 InvalidEndTime.Malformed The specified EndTime is invalid. The error message returned because the format of the specified 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 EndTime parameter is earlier than the specified StartTime parameter.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified StartTime parameter is invalid.

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