All Products
Search
Document Center

ADS Hour Data

Last Updated: Jun 18, 2020

API Name

QueryUserOmsData

Overview

You can call this API to get original usage data of ADS product.

Request parameters

Name Type Required Description
Table String Yes ads
DataType String Yes Time type, normally value is Hour
StartTime String Yes Data start time, format:yyyy-mm-ddThh:mm:ssZ
EndTime String Yes Data end time, format:yyyy-mm-ddThh:mm:ssZ
Maker String No Tag of last records of current request, using this parameter you can start next request with continuous records
PageSize Integer No 1~200,by default is 100

Response parameters

Name Type Description
HostId String User owned site
Region String Region
ECUCount Integer ECU Count
ECUType String ECU Type
ProviderId String Product supplier number, default 26842
EndTime String Billing data end time
StartTime String Billing data start time
DBName String Database name

Sample requests

For Hour:

  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

Sample responses

For Hour:

  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. }