Queries page view (PV) statistics. The data was collected at minimum intervals of 1 hour.

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 DescribeDcdnDomainPvData

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

DomainName String Yes example.com

The name of the accelerated domain. You can specify only one domain name.

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

Response parameters

Parameter Type Example Description
DataInterval String 3600

The data collection interval. Unit: second.

DomainName String example.com

The name of the accelerated domain for which the data was returned.

EndTime String 2019-11-29T00:00:00Z

The end of the time range during which the data was collected.

PvDataInterval Array

The number of PVs at each interval.

UsageData
TimeStamp String 2015-11-28T03:00:00Z

The timestamp of the data returned.

Value String 9292

The consumed network traffic.

RequestId String BCD7D917-76F1-442F-BB75-C810DE34C761

The ID of the request.

StartTime String 2019-11-28T00:00:00Z

The beginning of the time range during which the data was collected.

Examples

Sample requests

http://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainPvData
&DomainName=example.com
&StartTime=2019-11-28T00:00:00Z
&EndTime=2019-11-29T00:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnDomainPvDataResponse>
  <DataInterval>3600</DataInterval>
  <RequestId>BCD7D917-76F1-442F-BB75-C810DE34C761</RequestId>
  <DomainName>example.com</DomainName>
  <EndTime>2019-11-29T00:00:00Z</EndTime>
  <PvDataInterval>
        <UsageData>
              <TimeStamp>2015-11-29T03:00:00Z</TimeStamp>
              <Value>9292</Value>
        </UsageData>
        <UsageData>
              <TimeStamp>2015-11-29T23:00:00Z</TimeStamp>
              <Value>9239</Value>
        </UsageData>
  </PvDataInterval>
  <StartTime>2019-11-28T00:00:00Z</StartTime>
</DescribeDcdnDomainPvDataResponse>

JSON format

{
    "DataInterval": "3600",
    "RequestId": "BCD7D917-76F1-442F-BB75-C810DE34C761",
    "DomainName": "example.com",
    "EndTime": "2019-11-29T00:00:00Z",
    "PvDataInterval": {
        "UsageData": [
            {
                "TimeStamp": "2015-11-29T03:00:00Z",
                "Value": "9292"
            },
            {
                "TimeStamp": "2015-11-29T23:00:00Z",
                "Value": "9239"
            }
        ]
    },
    "StartTime": "2019-11-28T00: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 the StartTime and EndTime parameters must be specified together.
400 InvalidStartTime.Malformed The specified StartTime parameter is invalid. The error message returned because the format of the specified StartTime 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.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 end time is earlier than the 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.