全部产品
存储与CDN 数据库 域名与网站(万网) 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网 钉钉智能硬件
CDN

查询域名的UV页面独立访问统计数据

更新时间:2017-12-25 10:51:20

DescribeDomainUvData

描述

获取加速域名最小1小时粒度的 UV页面独立访问统计

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

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

请求参数

参数 类型 必要 描述
Action String 操作接口名,系统规定参数
取值:DescribeDomainUvData
DomainName String 需要查询的加速域名,只支持一个域名,不写代表当前用户下所有域名
StartTime String 获取数据起始时间点,日期格式按照ISO8601表示法,并使用UTC时间。
格式为:YYYY-MM-DDThh:mmZ
最小数据粒度为1小时
不写默认读取过去24小时数据
EndTime String 结束时间需大于起始时间;获日期格式按照ISO8601表示法,并使用UTC时间。
格式为:YYYY-MM-DDThh:mmZ

返回参数

名称 类型 描述
RequestId String 请求ID
DomainName String 加速域名信息
DataInterval String 每条记录的时间间隔,以秒为单位,固定值1小时
StartTime DateTime 开始时间
EndTime DateTime 结束时间
UvDataInterval UsageData[] 每个时间间隔的页面独立访问次数

UsageData

名称 类型 描述
TimeStamp String 时间片起始时刻
Value String 详细使用数据

特殊错误码

错误代码 描述 Http 状态码 语义
Throttling Request was denied due to request throttling. 503 请求被流量控制限制
IllegalOperation Illegal domain, operation is not permitted. 403 非法域名, 无法操作
OperationDenied Your account does not open CDN service yet. 403 未开通CDN服务
OperationDenied Your CDN service is suspended. 403 CDN服务已被停止
InvalidDomain.NotFound The domain provided does not belong to you. 404 域名不存在或不属于当前用户
InvalidDomain.Offline The domain provided is offline. 404 域名已下线
ServiceBusy The specified Domain is configuring, please retry later. 403 域名正在配置中, 请稍后再试
InvalidDomain.Configure_failed Failed to configure the provided domain. 500 域名配置失败
MissingParameter StartTime and EndTime can not be single. 400 StartTime和EndTime不能单独设置
InvalidStartTime.Malformed Specified start time is malformed. 400 StartTime格式错误
InvalidEndTime.Malformed Specified end time is malformed. 400 EndTime格式错误
InvalidEndTime.Mismatch Specified end time does not math the specified start time. 400 EndTime小于StartTime
InvalidStartTime.ValueNotSupported Specified end time does not math the specified start time. 400 EndTime和StartTime差值超过90天
InvalidDomainName.ValueNotSupported The specified value of parameter DomainName only support one or empty value. 400 DomainName只支持一个值或者不填

示例

请求示例:

  1. http://cdn.aliyuncs.com?Action=DescribeDomainUvData&DomainName=test.com
  2. &StartTime=2015-11-29
  3. &EndTime=2015-11-30
  4. &<公共请求参数>

返回示例:

JSON格式

  1. {
  2. "DataInterval": "3600",
  3. "RequestId": "E9D3257A-1B7C-414C-90C1-8D07AC47BCAC",
  4. "DomainName": "test.com",
  5. "EndTime": "2015-11-30",
  6. "StartTime": "2015-11-29",
  7. "UvDataInterval": {
  8. "UsageData": [
  9. {
  10. "TimeStamp": "2015-11-29T20:00:00Z",
  11. "Value": "318"
  12. },
  13. {
  14. "TimeStamp": "2015-11-29T18:00:00Z",
  15. "Value": "318"
  16. },
  17. {
  18. "TimeStamp": "2015-11-29T03:00:00Z",
  19. "Value": "329"
  20. },
  21. {
  22. "TimeStamp": "2015-11-29T21:00:00Z",
  23. "Value": "316"
  24. },
  25. {
  26. "TimeStamp": "2015-11-29T07:00:00Z",
  27. "Value": "319"
  28. },
  29. {
  30. "TimeStamp": "2015-11-29T00:00:00Z",
  31. "Value": "326"
  32. },
  33. {
  34. "TimeStamp": "2015-11-29T11:00:00Z",
  35. "Value": "321"
  36. },
  37. {
  38. "TimeStamp": "2015-11-29T10:00:00Z",
  39. "Value": "313"
  40. },
  41. {
  42. "TimeStamp": "2015-11-29T08:00:00Z",
  43. "Value": "331"
  44. },
  45. {
  46. "TimeStamp": "2015-11-29T01:00:00Z",
  47. "Value": "324"
  48. },
  49. {
  50. "TimeStamp": "2015-11-29T04:00:00Z",
  51. "Value": "330"
  52. },
  53. {
  54. "TimeStamp": "2015-11-29T14:00:00Z",
  55. "Value": "335"
  56. },
  57. {
  58. "TimeStamp": "2015-11-29T12:00:00Z",
  59. "Value": "318"
  60. },
  61. {
  62. "TimeStamp": "2015-11-29T23:00:00Z",
  63. "Value": "310"
  64. },
  65. {
  66. "TimeStamp": "2015-11-29T17:00:00Z",
  67. "Value": "309"
  68. },
  69. {
  70. "TimeStamp": "2015-11-29T22:00:00Z",
  71. "Value": "320"
  72. },
  73. {
  74. "TimeStamp": "2015-11-29T16:00:00Z",
  75. "Value": "309"
  76. },
  77. {
  78. "TimeStamp": "2015-11-29T02:00:00Z",
  79. "Value": "317"
  80. },
  81. {
  82. "TimeStamp": "2015-11-29T06:00:00Z",
  83. "Value": "309"
  84. },
  85. {
  86. "TimeStamp": "2015-11-29T19:00:00Z",
  87. "Value": "308"
  88. },
  89. {
  90. "TimeStamp": "2015-11-29T13:00:00Z",
  91. "Value": "347"
  92. },
  93. {
  94. "TimeStamp": "2015-11-29T15:00:00Z",
  95. "Value": "341"
  96. },
  97. {
  98. "TimeStamp": "2015-11-29T05:00:00Z",
  99. "Value": "347"
  100. },
  101. {
  102. "TimeStamp": "2015-11-29T09:00:00Z",
  103. "Value": "312"
  104. }
  105. ]
  106. }
  107. }

XML格式:

  1. <DescribeDomainUvDataResponse>
  2. <DataInterval>3600</DataInterval>
  3. <RequestId>8549C6DA-AE2B-4D22-9D0A-332485CAAB46</RequestId>
  4. <DomainName>test.com</DomainName>
  5. <EndTime>2015-11-30</EndTime>
  6. <StartTime>2015-11-29</StartTime>
  7. <UvDataInterval>
  8. <UsageData>
  9. <TimeStamp>2015-11-29T20:00:00Z</TimeStamp>
  10. <Value>318</Value>
  11. </UsageData>
  12. <UsageData>
  13. <TimeStamp>2015-11-29T18:00:00Z</TimeStamp>
  14. <Value>318</Value>
  15. </UsageData>
  16. <UsageData>
  17. <TimeStamp>2015-11-29T03:00:00Z</TimeStamp>
  18. <Value>329</Value>
  19. </UsageData>
  20. <UsageData>
  21. <TimeStamp>2015-11-29T21:00:00Z</TimeStamp>
  22. <Value>316</Value>
  23. </UsageData>
  24. <UsageData>
  25. <TimeStamp>2015-11-29T07:00:00Z</TimeStamp>
  26. <Value>319</Value>
  27. </UsageData>
  28. <UsageData>
  29. <TimeStamp>2015-11-29T00:00:00Z</TimeStamp>
  30. <Value>326</Value>
  31. </UsageData>
  32. <UsageData>
  33. <TimeStamp>2015-11-29T11:00:00Z</TimeStamp>
  34. <Value>321</Value>
  35. </UsageData>
  36. <UsageData>
  37. <TimeStamp>2015-11-29T10:00:00Z</TimeStamp>
  38. <Value>313</Value>
  39. </UsageData>
  40. <UsageData>
  41. <TimeStamp>2015-11-29T08:00:00Z</TimeStamp>
  42. <Value>331</Value>
  43. </UsageData>
  44. <UsageData>
  45. <TimeStamp>2015-11-29T01:00:00Z</TimeStamp>
  46. <Value>324</Value>
  47. </UsageData>
  48. <UsageData>
  49. <TimeStamp>2015-11-29T04:00:00Z</TimeStamp>
  50. <Value>330</Value>
  51. </UsageData>
  52. <UsageData>
  53. <TimeStamp>2015-11-29T14:00:00Z</TimeStamp>
  54. <Value>335</Value>
  55. </UsageData>
  56. <UsageData>
  57. <TimeStamp>2015-11-29T12:00:00Z</TimeStamp>
  58. <Value>318</Value>
  59. </UsageData>
  60. <UsageData>
  61. <TimeStamp>2015-11-29T23:00:00Z</TimeStamp>
  62. <Value>310</Value>
  63. </UsageData>
  64. <UsageData>
  65. <TimeStamp>2015-11-29T17:00:00Z</TimeStamp>
  66. <Value>309</Value>
  67. </UsageData>
  68. <UsageData>
  69. <TimeStamp>2015-11-29T22:00:00Z</TimeStamp>
  70. <Value>320</Value>
  71. </UsageData>
  72. <UsageData>
  73. <TimeStamp>2015-11-29T16:00:00Z</TimeStamp>
  74. <Value>309</Value>
  75. </UsageData>
  76. <UsageData>
  77. <TimeStamp>2015-11-29T02:00:00Z</TimeStamp>
  78. <Value>317</Value>
  79. </UsageData>
  80. <UsageData>
  81. <TimeStamp>2015-11-29T06:00:00Z</TimeStamp>
  82. <Value>309</Value>
  83. </UsageData>
  84. <UsageData>
  85. <TimeStamp>2015-11-29T19:00:00Z</TimeStamp>
  86. <Value>308</Value>
  87. </UsageData>
  88. <UsageData>
  89. <TimeStamp>2015-11-29T13:00:00Z</TimeStamp>
  90. <Value>347</Value>
  91. </UsageData>
  92. <UsageData>
  93. <TimeStamp>2015-11-29T15:00:00Z</TimeStamp>
  94. <Value>341</Value>
  95. </UsageData>
  96. <UsageData>
  97. <TimeStamp>2015-11-29T05:00:00Z</TimeStamp>
  98. <Value>347</Value>
  99. </UsageData>
  100. <UsageData>
  101. <TimeStamp>2015-11-29T09:00:00Z</TimeStamp>
  102. <Value>312</Value>
  103. </UsageData>
  104. </UvDataInterval>
  105. </DescribeDomainUvDataResponse>
本文导读目录