Queries the total number of HTTP status codes and the proportion of each HTTP status code for one or more specified accelerated domain names.

Note If you do not set StartTime or EndTime, data within the last hour is queried.

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 software development kits (SDKs).

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDcdnDomainRealTimeHttpCodeData

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

DomainName String Yes example.com

The accelerated domain name. You can specify one or more accelerated domain names. Separate them with commas (,).

StartTime String No 2017-12-10T20:00:00Z

The beginning of the time range to query.

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

EndTime String No 2017-12-10T21:00:00Z

The end of the time range to query.

The time follows 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) for Dynamic Route for CDN (DCDN).

You can call the DescribeDcdnRegionAndIsp operation to query the most recent ISP list. If you do not specify an ISP, all ISPs are queried.

LocationNameEn String No beijing

The name of the region.

You can call the DescribeDcdnRegionAndIsp operation to query the most recent region list. If you do not specify a region, all regions are queried.

Response parameters

Parameter Type Example Description
DataInterval String 300

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

DomainName String example.com

The accelerated domain name.

EndTime String 2017-12-10T21:00:00Z

The end of the time range that was queried.

RealTimeHttpCodeData Array of UsageData

The list of the proportions of HTTP status codes.

UsageData
TimeStamp String 2017-12-10T20:00:00Z

The timestamp of the data returned.

Value Array of RealTimeCodeProportionData

The information about the HTTP status code returned.

RealTimeCodeProportionData
Code String 200

The HTTP status code.

Count String 1

The total number of entries returned.

Proportion String 0.01155980271270037

The proportion of the HTTP status code.

RequestId String B955107D-E658-4E77-B913-E0AC3D31693E

The ID of the request.

StartTime String 2017-12-10T20:00:00Z

The beginning of the time range that was queried.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainRealTimeHttpCodeData
&DomainName=example.com
&StartTime=2017-12-10T20:00:00Z
&EndTime=2017-12-10T21:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainRealTimeHttpCodeDataResponse>
	  <DomainName>example.com</DomainName>
	  <DataInterval>300</DataInterval>
	  <RealTimeHttpCodeData>
		    <TimeStamp>2017-12-10T20:00:00Z</TimeStamp>
		    <RealTimeCodeProportionData>
			      <Code>200</Code>
			      <Proportion>0.01155980271270037</Proportion>
			      <Count>1</Count>
		    </RealTimeCodeProportionData>
	  </RealTimeHttpCodeData>
	  <RequestId>B955107D-E658-4E77-B913-E0AC3D31693E</RequestId>
	  <StartTime>2017-12-10T20:00:00Z</StartTime>
	  <EndTime>2017-12-10T21:00:00Z</EndTime>
</DescribeDcdnDomainRealTimeHttpCodeDataResponse>

JSON format

{
    "DomainName": "example.com",
    "DataInterval": "300",
    "RealTimeHttpCodeData": {
        "TimeStamp": "2017-12-10T20:00:00Z",
        "RealTimeCodeProportionData": [
            {
                "Code": "200",
                "Proportion": "0.01155980271270037",
                "Count": "1"
            }
        ]
    },
    "RequestId": "B955107D-E658-4E77-B913-E0AC3D31693E",
    "StartTime": "2017-12-10T20:00:00Z",
    "EndTime": "2017-12-10T21:00:00Z"
}

Error codes

HttpCode Error code Error message Description
400 MissingTimeParameter The StartTime and EndTime must be both specified. The error message returned because both the StartTime and EndTime parameters must be set.
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 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 invalid.

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