All Products
Search
Document Center

:DescribeLiveDomainRealTimeHttpCodeData

更新時間:Aug 09, 2024

Queries the proportions of HTTP status codes returned for accelerated domain names. The minimum time granularity is 1 minute.

Usage notes

The following table describes the time granularity supported by this operation.

Time granularity

Maximum time range per query

Historical data availability

Data latency

1 minute

1 hour

7 days

5 minutes

5 minutes

3 days

93 days

15 minutes

1 hour

31 days

186 days

4 hours

1 day

Unlimited

366 days

After 04:00 the next day

QPS limit

You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

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 DescribeLiveDomainRealTimeHttpCodeData

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

DomainName String Yes example.com,example.aliyundoc.com

The streaming domain name.

If you want to specify multiple domains, separate them with commas (,).

StartTime String No 2015-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.

Note If you leave StartTime and EndTime empty, the data in the previous hour is returned.
EndTime String No 2015-11-30T05:40:00Z

The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Note If you leave StartTime and EndTime empty, the data in the previous hour is returned.
IspNameEn String No alibaba

The name of the Internet service provider (ISP).

You can call the DescribeCdnRegionAndIsp operation to query the supported ISPs.

LocationNameEn String No tianjin

The name of the region.

You can call the DescribeCdnRegionAndIsp operation to query the supported regions.

Response parameters

Parameter

Type

Example

Description

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

The end of the time range for which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

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

The beginning of the time range for which data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

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

The request ID.

DomainName String example.com,example.aliyundoc.com

The streaming domain name.

DataInterval String 60

The time interval between the returned entries. Unit: seconds. Default value: 60.

RealTimeHttpCodeData Array of UsageData

The information about the HTTP status codes returned at each time interval.

UsageData
TimeStamp String 2015-11-30T05:39:00Z

The timestamp of the returned data.

Value Array of RealTimeCodeProportionData

The proportion of each HTTP status code.

RealTimeCodeProportionData
Code String 200

The HTTP status code.

Proportion String 66.046511627907

The percentage of the HTTP status code relative to all status codes returned.

Count String 20

The number of times the HTTP status code was returned.

Examples

Sample request

http(s)://live.aliyuncs.com/?Action=DescribeLiveDomainRealTimeHttpCodeData
&DomainName=example.com,example.aliyundoc.com
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<DescribeLiveDomainRealTimeHttpCodeDataResponse>
<EndTime>2015-11-30T05:40:00Z</EndTime>
<RequestId>BC858082-736F-4A25-867B-E5B67C85ACF7</RequestId>
<DomainName>example.com,example.aliyundoc.com</DomainName>
<DataInterval>60</DataInterval>
<StartTime>2015-11-30T05:33:00Z</StartTime>
<RealTimeHttpCodeData>
    <UsageData>
        <TimeStamp>2015-11-30T05:39:00Z</TimeStamp>
        <Value>
            <RealTimeCodeProportionData>
                <Proportion>66.046511627907</Proportion>
                <Count>20</Count>
                <Code>200</Code>
            </RealTimeCodeProportionData>
        </Value>
    </UsageData>
</RealTimeHttpCodeData>
</DescribeLiveDomainRealTimeHttpCodeDataResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "DescribeLiveDomainRealTimeHttpCodeDataResponse" : {
    "EndTime" : "2015-11-30T05:40:00Z",
    "RequestId" : "BC858082-736F-4A25-867B-E5B67C85ACF7",
    "DomainName" : "example.com,example.aliyundoc.com",
    "DataInterval" : 60,
    "StartTime" : "2015-11-30T05:33:00Z",
    "RealTimeHttpCodeData" : {
      "UsageData" : {
        "TimeStamp" : "2015-11-30T05:39:00Z",
        "Value" : {
          "RealTimeCodeProportionData" : {
            "Proportion" : 66.046511627907,
            "Count" : 20,
            "Code" : 200
          }
        }
      }
    }
  }
}

Error codes

For a list of error codes, see Service error codes.