Queries the data usage of each ISP and the number of visits in each region. The data was collected at intervals of one minute. You can query data that has been collected within the last seven days.

When you call this operation, note that:
  • The time range specified by the StartTime and EndTime parameters cannot exceed 10 minutes.
  • You can call this operation up to 10 times per second with each account.

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 DescribeDomainRealTimeDetailData

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

DomainName String Yes example.com

The accelerated domain name for which you want to query data. You can specify multiple accelerated domain names and separate them with commas (,).

StartTime String Yes 2019-11-30T05:33: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.

EndTime String Yes 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.

The end of the time range to query. The end time must be later than the start time.

Field String Yes qps

The type of data usage that you want to query. You can specify multiple data types and separate them with commas (,). Valid values:

  • qps: the number of queries per second.
  • bps: bandwidth data.
  • http_code: HTTP status codes.
LocationNameEn String No beijing

The English name of the region. To query region names, call the DescribeCdnRegionAndIsp operation. If you do not set this parameter, all regions are used to query data usage.

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 set this parameter, all ISPs are used to query data usage.

Merge String No false

Specifies whether to return the merged result. Valid values:

  • true: returns the merged result is returned.
  • false: does not return the merged result. This is the default value.
MergeLocIsp String No false

This parameter is unavailable. You do not need to set this parameter.

Response parameters

Parameter Type Example Description
Data String "Data":{ "2018-06-05T20:00:00Z": { "example.com": { "Guangdong": { "telecom": 10.0 }, "Jiangsu": { "unicom": 11.1 } } } }

The details of the returned ISPs and regions.

RequestId String B49E6DDA-F413-422B-B58E-2FA23F286726

The ID of the request.

Examples

Sample requests

https://cdn.aliyuncs.com/?Action=DescribeDomainRealTimeDetailData
&DomainName=example.com
&field=qps
&StartTime=2018-06-05T20:00:00Z
&EndTime=2018-06-05T20:03:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDomainRealTimeDetailDataResponse>
  <Data>
            <example.com>
                  <Guangdong>
                        <telecom>10</telecom>
                  </Guangdong>
                  <Jiangsu>
                        <unicom>11.1</unicom>
                  </Jiangsu>
            </example.com>
  </Data>
  <RequestId>B49E6DDA-F413-422B-B58E-2FA23F286726</RequestId>
</DescribeDomainRealTimeDetailDataResponse>

JSON format

{
   "Data":{
        "2018-06-05T20:00:00Z": {
            "example.com": {
                "Guangdong": {
                    "telecom": 10.0
                },
                "Jiangsu": {
                    "unicom": 11.1
                }
            }
        }
   },
   "RequestId":"B49E6DDA-F413-422B-B58E-2FA23F286726"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidTime.Malformed Specified StartTime or EndTime is malformed. The error message returned because the format of the specified start time or end time is invalid.

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