Queries the page view (PV) data of an accelerated domain name. The data is collected at an interval of 1 hour. You can query data within the last 90 days.
The statistical analytics feature of Alibaba Cloud CDN is discontinued. The API operations related to the statistical analytics feature are no longer maintained. We recommend that you do not use the API operations because data may be missing or inaccurate. You can use the operations report feature to for data analysis.
- If you do not set StartTime or EndTime, monitoring data within the last 24 hours is queried. If you set both StartTime and EndTime, monitoring data within the specified time range is queried.
- You can call this operation up to 50 times per second per account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDomainPvData |
The operation that you want to perform. Set the value to DescribeDomainPvData. |
DomainName | String | Yes | example.com |
The accelerated domain name. You can specify only one domain name. |
StartTime | String | No | 2015-11-28T00:00: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 | No | 2015-11-29T00:00: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 time must be later than the start time. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
EndTime | String | 2015-11-28T04:00:00Z |
The end of the time range during which data was queried. |
StartTime | String | 2015-11-28T03:00:00Z |
The beginning of the time range during which data was queried. |
RequestId | String | BCD7D917-76F1-442F-BB75-C810DE34C761 |
The ID of the request. |
DomainName | String | example.com |
The accelerated domain name. |
DataInterval | String | 3600 |
The time interval between the data entries. Unit: seconds. |
PvDataInterval | Array of UsageData |
The number of PVs at each interval. |
|
UsageData | |||
Value | String | 9292 |
The number of PVs. |
TimeStamp | String | 2015-11-28T03:00:00Z |
The timestamp of the returned data. |
Examples
Sample requests
http://cdn.aliyuncs.com/?Action=DescribeDomainPvData
&DomainName=example.com
&StartTime=2015-11-28T00:00:00Z
&EndTime=2015-11-29T00:00:00Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDomainPvDataResponse>
<DataInterval>3600</DataInterval>
<RequestId>BCD7D917-76F1-442F-BB75-C810DE34C761</RequestId>
<DomainName>example.com</DomainName>
<EndTime>2015-11-29T00:00:00Z</EndTime>
<PvDataInterval>
<UsageData>
<TimeStamp>2015-11-28T03:00:00Z</TimeStamp>
<Value>9292</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T23:00:00Z</TimeStamp>
<Value>9239</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T07:00:00Z</TimeStamp>
<Value>9464</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T12:00:00Z</TimeStamp>
<Value>9379</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T22:00:00Z</TimeStamp>
<Value>9243</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T10:00:00Z</TimeStamp>
<Value>10063</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T15:00:00Z</TimeStamp>
<Value>9068</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T14:00:00Z</TimeStamp>
<Value>9353</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T04:00:00Z</TimeStamp>
<Value>9513</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T02:00:00Z</TimeStamp>
<Value>9377</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T08:00:00Z</TimeStamp>
<Value>9579</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T20:00:00Z</TimeStamp>
<Value>9109</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T09:00:00Z</TimeStamp>
<Value>10631</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T06:00:00Z</TimeStamp>
<Value>9587</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T01:00:00Z</TimeStamp>
<Value>9108</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T16:00:00Z</TimeStamp>
<Value>9454</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T21:00:00Z</TimeStamp>
<Value>9285</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T19:00:00Z</TimeStamp>
<Value>9059</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T00:00:00Z</TimeStamp>
<Value>9470</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T05:00:00Z</TimeStamp>
<Value>11830</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T13:00:00Z</TimeStamp>
<Value>9992</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T17:00:00Z</TimeStamp>
<Value>9529</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T18:00:00Z</TimeStamp>
<Value>9203</Value>
</UsageData>
<UsageData>
<TimeStamp>2015-11-28T11:00:00Z</TimeStamp>
<Value>9604</Value>
</UsageData>
</PvDataInterval>
<StartTime>2015-11-28T00:00:00Z</StartTime>
</DescribeDomainPvDataResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DataInterval" : "3600",
"RequestId" : "BCD7D917-76F1-442F-BB75-C810DE34C761",
"DomainName" : "example.com",
"EndTime" : "2015-11-29T00:00:00Z",
"PvDataInterval" : {
"UsageData" : [ {
"TimeStamp" : "2015-11-28T03:00:00Z",
"Value" : "9292"
}, {
"TimeStamp" : "2015-11-28T23:00:00Z",
"Value" : "9239"
}, {
"TimeStamp" : "2015-11-28T07:00:00Z",
"Value" : "9464"
}, {
"TimeStamp" : "2015-11-28T12:00:00Z",
"Value" : "9379"
}, {
"TimeStamp" : "2015-11-28T22:00:00Z",
"Value" : "9243"
}, {
"TimeStamp" : "2015-11-28T10:00:00Z",
"Value" : "10063"
}, {
"TimeStamp" : "2015-11-28T15:00:00Z",
"Value" : "9068"
}, {
"TimeStamp" : "2015-11-28T14:00:00Z",
"Value" : "9353"
}, {
"TimeStamp" : "2015-11-28T04:00:00Z",
"Value" : "9513"
}, {
"TimeStamp" : "2015-11-28T02:00:00Z",
"Value" : "9377"
}, {
"TimeStamp" : "2015-11-28T08:00:00Z",
"Value" : "9579"
}, {
"TimeStamp" : "2015-11-28T20:00:00Z",
"Value" : "9109"
}, {
"TimeStamp" : "2015-11-28T09:00:00Z",
"Value" : "10631"
}, {
"TimeStamp" : "2015-11-28T06:00:00Z",
"Value" : "9587"
}, {
"TimeStamp" : "2015-11-28T01:00:00Z",
"Value" : "9108"
}, {
"TimeStamp" : "2015-11-28T16:00:00Z",
"Value" : "9454"
}, {
"TimeStamp" : "2015-11-28T21:00:00Z",
"Value" : "9285"
}, {
"TimeStamp" : "2015-11-28T19:00:00Z",
"Value" : "9059"
}, {
"TimeStamp" : "2015-11-28T00:00:00Z",
"Value" : "9470"
}, {
"TimeStamp" : "2015-11-28T05:00:00Z",
"Value" : "11830"
}, {
"TimeStamp" : "2015-11-28T13:00:00Z",
"Value" : "9992"
}, {
"TimeStamp" : "2015-11-28T17:00:00Z",
"Value" : "9529"
}, {
"TimeStamp" : "2015-11-28T18:00:00Z",
"Value" : "9203"
}, {
"TimeStamp" : "2015-11-28T11:00:00Z",
"Value" : "9604"
} ]
},
"StartTime" : "2015-11-28T00:00:00Z"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The error message returned because the format of the specified end time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The error message returned because the specified start time is invalid. Set a valid value and try again. |
400 | InvalidTime.ValueNotSupported | StartTime or EndTime is miss match. | The time range specified by the StartTime and EndTime parameters is invalid. |
For a list of error codes, visit the API Error Center.