Advertisement
jroakes

stat_schema

Jun 29th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. STAT_API_SCHEMA = [
  2.  
  3. {
  4. 'name' : 'Id',
  5. 'type' : 'INTEGER',
  6. 'mode' : 'REQUIRED'
  7. },
  8. {
  9. 'name' : 'ProjectName',
  10. 'type' : 'STRING',
  11. 'mode' : 'REQUIRED'
  12. },
  13. {
  14. 'name' : 'SiteUrl',
  15. 'type' : 'STRING',
  16. 'mode' : 'REQUIRED'
  17. },
  18. {
  19. 'name' : 'Keyword',
  20. 'type' : 'STRING',
  21. 'mode' : 'REQUIRED'
  22. },
  23. {
  24. 'name' : 'KeywordLocation',
  25. 'type' : 'STRING',
  26. 'mode' : 'NULLABLE'
  27. },
  28. {
  29. 'name' : 'KeywordCategories',
  30. 'type' : 'STRING',
  31. 'mode' : 'NULLABLE'
  32. },
  33. {
  34. 'name' : 'KeywordTags',
  35. 'type' : 'STRING',
  36. 'mode' : 'NULLABLE'
  37. },
  38. {
  39. 'name' : 'KeywordDevice',
  40. 'type' : 'STRING',
  41. 'mode' : 'NULLABLE'
  42. },
  43. {
  44. 'name' : 'KeywordStats',
  45. 'type' : 'RECORD',
  46. 'mode' : 'NULLABLE',
  47. 'fields': [
  48. {
  49. 'name': 'AdvertiserCompetition',
  50. 'type': 'FLOAT',
  51. 'mode': 'NULLABLE'
  52. },
  53. {
  54. 'name': 'GlobalSearchVolume',
  55. 'type': 'INTEGER',
  56. 'mode': 'NULLABLE'
  57. },
  58. {
  59. 'name': 'TargetedSearchVolume',
  60. 'type': 'INTEGER',
  61. 'mode': 'NULLABLE'
  62. },
  63. {
  64. 'name': 'CPC',
  65. 'type': 'FLOAT',
  66. 'mode': 'NULLABLE'
  67. }
  68. ]
  69. },
  70. {
  71. 'name' : 'CreatedAt',
  72. 'type' : 'DATETIME',
  73. 'mode' : 'REQUIRED'
  74. },
  75. {
  76. 'name' : 'Ranking',
  77. 'type' : 'RECORD',
  78. 'mode' : 'REQUIRED',
  79. 'fields': [
  80. {
  81. 'name': 'date',
  82. 'type': 'DATETIME',
  83. 'mode': 'REQUIRED'
  84. },
  85. {
  86. 'name': 'type',
  87. 'type': 'STRING',
  88. 'mode': 'NULLABLE'
  89. },
  90. {
  91. 'name' : 'Google',
  92. 'type' : 'RECORD',
  93. 'mode' : 'NULLABLE',
  94. 'fields': [
  95. {
  96. 'name': 'Rank',
  97. 'type': 'INTEGER',
  98. 'mode': 'NULLABLE'
  99. },
  100. {
  101. 'name': 'BaseRank',
  102. 'type': 'INTEGER',
  103. 'mode': 'NULLABLE'
  104. },
  105. {
  106. 'name': 'Url',
  107. 'type': 'STRING',
  108. 'mode': 'NULLABLE'
  109. }
  110.  
  111.  
  112. ]
  113. }
  114.  
  115. ]
  116. }
  117. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement