调用DescribeScdnDomainPvData获取加速域名最小1小时粒度的PV页面访问的统计数据。

不指定StartTimeEndTime时,默认读取过去24小时的数据,同时支持按指定的起止时间查询,两者需要同时指定。

  • 只支持一个域名,或当前用户下所有域名
  • 最多可获取最近90天的数据

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeScdnDomainPvData

系统规定参数。取值:DescribeScdnDomainPvData

DomainName String example.com

需要查询的加速域名,只支持一个域名,不写代表当前用户下所有域名。

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

结束时间需大于起始时间;获日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。

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

获取数据起始时间点,日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mm:ssZ。

  • 最小数据粒度为1小时
  • 不写默认读取过去24小时数据

返回数据

名称 类型 示例值 描述
DomainName String example.com

加速域名信息

PvDataInterval

每个时间间隔的页面访问次数

UsageData

每个时间间隔的页面访问次数

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

时间片起始时刻

Value String 9292

详细使用数据

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

请求ID

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

开始时间

示例

请求示例


http(s)://scdn.aliyuncs.com/?Action=DescribeScdnDomainPvData
&DomainName=example.com
&<公共请求参数>

正常返回示例

XML 格式

<DescribeScdnDomainPvDataResponse>
      <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>
</DescribeScdnDomainPvDataResponse>

JSON 格式

{
	"DataInterval":"3600",
	"RequestId":"BCD7D917-76F1-442F-BB75-C810DE34C761",
	"DomainName":"example.com",
	"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"
			}
		]
	},
	"EndTime":"2015-11-29T00:00:00Z",
	"StartTime":"2015-11-28T00:00:00Z"
}

错误码

访问错误中心查看更多错误码。