全部产品
云市场

ADS小时数据

更新时间:2019-05-10 10:50:51

接口名

QueryUserOmsData

描述

查询分析型数据库按小时计量的数据信息。

请求参数

名称 类型 是否必填 说明
Table String ads
DataType String 计量数据时间类型。Hour:小时
StartTime String 请求的开始时间。日期格式按照ISO8601标准标示,并需要使用UTC时间。格式:yyyy-mm-ddThh:mm:ssZ
EndTime String 请求的结束时间。日期格式按照ISO8601标准标示,并需要使用UTC时间。格式:yyyy-mm-ddThh:mm:ssZ
Maker String 设定结果从NextToken之后按字母排序的第一个开始返回。默认从头返回
PageSize Integer 分页查询每页行数,1~200,默认100行

返回参数

名称 类型 说明
HostId String 用户所属站点,cn为国内站
Region String 地域
ECUCount Integer ECU数量
ECUType String ECU类型
ProviderId String 产品供应商对应编号,默认26842
EndTime String 计费数据发生结束时间
StartTime String 计费数据发生开始时间
DBName String 用户定义的数据库名称

请求示例

示例(按小时):

  1. https://business.aliyuncs.com/?Action=QueryUserOmsData
  2. &DataType=Hour
  3. &EndTime=2019-04-18T09:15:54Z
  4. &StartTime=2019-01-18T09:15:54Z
  5. &Table=ads
  6. &<公共请求参数>

返回示例

示例(按小时):

  1. {
  2. "Data": {
  3. "OmsData": [
  4. {
  5. "Region": "cn-shenzhen",
  6. "ECUCount": "2",
  7. "ECUType": "c4",
  8. "ProviderId": "26842",
  9. "EndTime": "2019-01-24T09:00:00Z",
  10. "StartTime": "2019-01-24T08:00:00Z",
  11. "DBName": "ads_tt"
  12. },
  13. {
  14. "Region": "cn-shenzhen",
  15. "ECUCount": "4",
  16. "ECUType": "c4",
  17. "ProviderId": "26842",
  18. "EndTime": "2019-01-24T10:00:00Z",
  19. "StartTime": "2019-01-24T09:00:00Z",
  20. "DBName": "ads_tt"
  21. },
  22. {
  23. "Region": "cn-shenzhen",
  24. "ECUCount": "4",
  25. "ECUType": "c4",
  26. "ProviderId": "26842",
  27. "EndTime": "2019-01-24T11:00:00Z",
  28. "StartTime": "2019-01-24T10:00:00Z",
  29. "DBName": "ads_tt"
  30. },
  31. {
  32. "Region": "cn-shenzhen",
  33. "ECUCount": "4",
  34. "ECUType": "c4",
  35. "ProviderId": "26842",
  36. "EndTime": "2019-01-24T12:00:00Z",
  37. "StartTime": "2019-01-24T11:00:00Z",
  38. "DBName": "ads_tt"
  39. },
  40. {
  41. "Region": "cn-shenzhen",
  42. "ECUCount": "4",
  43. "ECUType": "c4",
  44. "ProviderId": "26842",
  45. "EndTime": "2019-01-24T13:00:00Z",
  46. "StartTime": "2019-01-24T12:00:00Z",
  47. "DBName": "ads_tt"
  48. },
  49. {
  50. "Region": "cn-shenzhen",
  51. "ECUCount": "4",
  52. "ECUType": "c4",
  53. "ProviderId": "26842",
  54. "EndTime": "2019-01-24T14:00:00Z",
  55. "StartTime": "2019-01-24T13:00:00Z",
  56. "DBName": "ads_tt"
  57. },
  58. {
  59. "Region": "cn-shenzhen",
  60. "ECUCount": "4",
  61. "ECUType": "c4",
  62. "ProviderId": "26842",
  63. "EndTime": "2019-01-24T15:00:00Z",
  64. "StartTime": "2019-01-24T14:00:00Z",
  65. "DBName": "ads_tt"
  66. },
  67. {
  68. "Region": "cn-shenzhen",
  69. "ECUCount": "4",
  70. "ECUType": "c4",
  71. "ProviderId": "26842",
  72. "EndTime": "2019-01-24T16:00:00Z",
  73. "StartTime": "2019-01-24T15:00:00Z",
  74. "DBName": "ads_tt"
  75. },
  76. {
  77. "Region": "cn-shenzhen",
  78. "ECUCount": "4",
  79. "ECUType": "c4",
  80. "ProviderId": "26842",
  81. "EndTime": "2019-01-24T17:00:00Z",
  82. "StartTime": "2019-01-24T16:00:00Z",
  83. "DBName": "ads_tt"
  84. },
  85. {
  86. "Region": "cn-shenzhen",
  87. "ECUCount": "4",
  88. "ECUType": "c4",
  89. "ProviderId": "26842",
  90. "EndTime": "2019-01-24T18:00:00Z",
  91. "StartTime": "2019-01-24T17:00:00Z",
  92. "DBName": "ads_tt"
  93. },
  94. {
  95. "Region": "cn-shenzhen",
  96. "ECUCount": "4",
  97. "ECUType": "c4",
  98. "ProviderId": "26842",
  99. "EndTime": "2019-01-24T19:00:00Z",
  100. "StartTime": "2019-01-24T18:00:00Z",
  101. "DBName": "ads_tt"
  102. },
  103. {
  104. "Region": "cn-shenzhen",
  105. "ECUCount": "4",
  106. "ECUType": "c4",
  107. "ProviderId": "26842",
  108. "EndTime": "2019-01-24T20:00:00Z",
  109. "StartTime": "2019-01-24T19:00:00Z",
  110. "DBName": "ads_tt"
  111. },
  112. {
  113. "Region": "cn-shenzhen",
  114. "ECUCount": "4",
  115. "ECUType": "c4",
  116. "ProviderId": "26842",
  117. "EndTime": "2019-01-24T21:00:00Z",
  118. "StartTime": "2019-01-24T20:00:00Z",
  119. "DBName": "ads_tt"
  120. },
  121. {
  122. "Region": "cn-shenzhen",
  123. "ECUCount": "4",
  124. "ECUType": "c4",
  125. "ProviderId": "26842",
  126. "EndTime": "2019-01-24T22:00:00Z",
  127. "StartTime": "2019-01-24T21:00:00Z",
  128. "DBName": "ads_tt"
  129. },
  130. {
  131. "Region": "cn-shenzhen",
  132. "ECUCount": "4",
  133. "ECUType": "c4",
  134. "ProviderId": "26842",
  135. "EndTime": "2019-01-24T23:00:00Z",
  136. "StartTime": "2019-01-24T22:00:00Z",
  137. "DBName": "ads_tt"
  138. },
  139. {
  140. "Region": "cn-shenzhen",
  141. "ECUCount": "4",
  142. "ECUType": "c4",
  143. "ProviderId": "26842",
  144. "EndTime": "2019-01-25T00:00:00Z",
  145. "StartTime": "2019-01-24T23:00:00Z",
  146. "DBName": "ads_tt"
  147. }
  148. ],
  149. "HostId": "cn",
  150. "Marker": "145:00000000000000012945:r:01_1711245632317223:02_ADS:03_26842:04_cn-shenzhen:05_ads_tt:06_000000000001548676800:"
  151. },
  152. "Message": "Successful!",
  153. "RequestId": "D1A76432-830F-4D97-A515-B7CA5F174BB2",
  154. "Success": true,
  155. "Code": "Success"
  156. }