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

Before you call this operation, pay attention to the following notes:
  • The time range that is specified by the StartTime and EndTime parameters cannot exceed 24 hours for a query.
  • If you specify neither the StartTime parameter nor the EndTime parameter, the data within the last hour is returned.
  • You can specify multiple accelerated domain names and separate them with commas (,).
  • You can query the data for up to 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 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 names of the accelerated domains. If you need to specify multiple accelerated domain names, separate them 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 data that is collected within the last hour is returned.

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). You can call the DescribeCdnRegionAndIsp operation to query ISPs. If you do not specify this parameter, the operation returns the data for 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 for all the regions.

Response parameters

Parameter Type Example Description
DataInterval String 60

The data collection interval. Unit: second.

DomainName String example.com,example1.com

The name of the accelerated domain.

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 is displayed 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 returned 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 beginning 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 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 only the StartTime parameter or the EndTime parameter is specified. Specify both parameters or leave both parameters empty.
400 InvalidStartTime.Malformed The specified StartTime parameter is invalid. The error message returned because the format of the specified start time 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 format of the specified end time 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 end time is earlier than the specified start time.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified start time is not supported. Specify another value.

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