Queries resolution statistics for a domain name.
Debug
Request parameters
Name | Type | Required | Example | Description |
Action | String | Yes | GetResolveStatistics | This is a required parameter whose value must be GetResolveStatistics. |
DomainName | String | Yes | www.aliyun.com | The domain name for which you want to query statistics. |
Granularity | String | Yes | month | The data granularity. Valid values: day and month. |
TimeSpan | Integer | Yes | 2 | The length of the time slice. |
ProtocolName | String | No | https | The protocol used for domain name resolution. Valid values: http (default) and https. |
Returned data
Name | Type | Example | Description |
RequestId | String | 50F9C40E-188D-B00B-BE2C-7427E531**** | The request ID. |
DataPoints | Array of DataPoint | The data points. | |
DataPoint | |||
Time | Integer | 1488297600 | The parsing time. |
Count | Integer | 9703 | The number of requests. |
Examples
Request example
http(s)://httpdns-api.aliyuncs.com/?Action=GetResolveStatistics
&DomainName=www.aliyun.com
&Granularity=month
&TimeSpan=2
&<Common request parameters>Response examples
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version='1.0' encoding='UTF-8'?>
<GetResolveStatisticsResponse>
<RequestId>50F9C40E-1816-B00B-BE2C-7427E5316481</RequestId>
<DataPoints>
<DataPoint>
<Time>1488297600</Time>
<Count>9703</Count>
</DataPoint>
<DataPoint>
<Time>1490976000</Time>
<Count>9390</Count>
</DataPoint>
</DataPoints>
</GetResolveStatisticsResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "50F9C40E-188D-B00B-BE2C-7427E5316481",
"DataPoints" : [ {
"Time" : 1488297600,
"Count" : 9703
}, {
"Time" : 1490976000,
"Count" : 9390
} ]
}Error codes
For a list of error codes, see the Error Center.