room.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. {
  2. "apiVersion": "1.0",
  3. "apis": [
  4. {
  5. "description": "getElementByRoomId",
  6. "operations": [
  7. {
  8. "method": "POST",
  9. "summary": "获取机房下元素.",
  10. "notes": "获取机房下元素",
  11. "nickname": "getElementByRoomId",
  12. "produces": [
  13. "*/*"
  14. ],
  15. "consumes": [
  16. "application/json"
  17. ],
  18. "parameters": [
  19. {
  20. "allowMultiple": false,
  21. "defaultValue": "",
  22. "description": "roomId",
  23. "name": "roomId",
  24. "paramType": "path",
  25. "type": "string",
  26. "required": true
  27. },
  28. {
  29. "allowMultiple": false,
  30. "description": "_openCLIENT 默认值是RIIL",
  31. "name": "_openCLIENT",
  32. "paramAccess": "",
  33. "paramType": "query",
  34. "type": "string",
  35. "required": true
  36. }
  37. ],
  38. "responseMessages": [
  39. {
  40. "code": 200,
  41. "message": null,
  42. "responseModel": "机房元素数据"
  43. },
  44. {
  45. "code": 500,
  46. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  47. },
  48. {
  49. "code": 502,
  50. "message": "缺少ssoToken或ssoToken已过期"
  51. }
  52. ],
  53. "deprecated": "false",
  54. "type": "机房元素数据"
  55. }
  56. ],
  57. "path": "/room/getElement/{roomId}"
  58. },
  59. {
  60. "description": "getAllRoom",
  61. "operations": [
  62. {
  63. "method": "POST",
  64. "summary": "获取所有机房.",
  65. "notes": "获取所有机房",
  66. "nickname": "getAllRoom",
  67. "produces": [
  68. "*/*"
  69. ],
  70. "consumes": [
  71. "application/json"
  72. ],
  73. "parameters": [
  74. {
  75. "allowMultiple": false,
  76. "description": "_openCLIENT 默认值是RIIL",
  77. "name": "_openCLIENT",
  78. "paramAccess": "",
  79. "paramType": "query",
  80. "type": "string",
  81. "required": true
  82. }
  83. ],
  84. "responseMessages": [
  85. {
  86. "code": 200,
  87. "message": null,
  88. "responseModel": "机房列表数据"
  89. },
  90. {
  91. "code": 500,
  92. "message": "请求出错,返回JSON: {message:\"错误信息\"}"
  93. },
  94. {
  95. "code": 502,
  96. "message": "缺少ssoToken或ssoToken已过期"
  97. }
  98. ],
  99. "deprecated": "false",
  100. "type": "机房列表数据"
  101. }
  102. ],
  103. "path": "/room/getRoom"
  104. }
  105. ],
  106. "basePath": "/adapter",
  107. "consumes": [
  108. "application/json"
  109. ],
  110. "models": {
  111. "获取登录信息": {
  112. "description": "",
  113. "id": "获取登录信息",
  114. "properties": {
  115. "_openCLIENT": {
  116. "description": "_openCLIENT 默认值是RIIL",
  117. "required": true,
  118. "type": "string"
  119. }
  120. }
  121. },
  122. "机房元素数据": {
  123. "description": "",
  124. "id": "机房元素数据",
  125. "properties": {
  126. "elementPojoList": {
  127. "description": "ElementVO 对象集合",
  128. "items": {
  129. "type": "RoomElementVO"
  130. },
  131. "required": false,
  132. "type": "array"
  133. }
  134. }
  135. },
  136. "RoomElementVO": {
  137. "description": "",
  138. "id": "RoomElementVO",
  139. "properties": {
  140. "value": {
  141. "required": false,
  142. "type": "string"
  143. },
  144. "time": {
  145. "required": false,
  146. "format": "date-time",
  147. "type": "string"
  148. },
  149. "roomId": {
  150. "required": false,
  151. "type": "string"
  152. },
  153. "isCross": {
  154. "required": false,
  155. "format": "byte",
  156. "type": "string"
  157. },
  158. "elementName": {
  159. "required": false,
  160. "type": "string"
  161. },
  162. "metricId": {
  163. "required": false,
  164. "type": "string"
  165. },
  166. "metricName": {
  167. "required": false,
  168. "type": "string"
  169. },
  170. "unit": {
  171. "required": false,
  172. "type": "string"
  173. },
  174. "metricDefinitionId": {
  175. "required": false,
  176. "type": "string"
  177. },
  178. "elementDefinitionName": {
  179. "required": false,
  180. "type": "string"
  181. },
  182. "elementDisplayName": {
  183. "required": false,
  184. "type": "string"
  185. },
  186. "metricDefinitionName": {
  187. "required": false,
  188. "type": "string"
  189. },
  190. "dataType": {
  191. "required": false,
  192. "type": "string"
  193. },
  194. "elementDefinitionId": {
  195. "required": false,
  196. "type": "string"
  197. }
  198. }
  199. },
  200. "RoomVO": {
  201. "description": "",
  202. "id": "RoomVO",
  203. "properties": {
  204. "id": {
  205. "required": false,
  206. "type": "string"
  207. },
  208. "displayName": {
  209. "required": false,
  210. "type": "string"
  211. },
  212. "level": {
  213. "required": false,
  214. "type": "string"
  215. },
  216. "rackCount": {
  217. "required": false,
  218. "format": "int32",
  219. "type": "integer"
  220. },
  221. "resCount": {
  222. "required": false,
  223. "format": "int32",
  224. "type": "integer"
  225. },
  226. "capacity": {
  227. "required": false,
  228. "format": "int32",
  229. "type": "integer"
  230. },
  231. "usedCapacity": {
  232. "required": false,
  233. "format": "int32",
  234. "type": "integer"
  235. },
  236. "usedCapacityRate": {
  237. "required": false,
  238. "format": "double",
  239. "type": "number"
  240. },
  241. "area": {
  242. "required": false,
  243. "format": "double",
  244. "type": "number"
  245. }
  246. }
  247. },
  248. "机房列表数据": {
  249. "description": "",
  250. "id": "机房列表数据",
  251. "properties": {
  252. "roomVOList": {
  253. "description": "RoomVO 对象集合",
  254. "items": {
  255. "type": "RoomVO"
  256. },
  257. "required": false,
  258. "type": "array"
  259. }
  260. }
  261. }
  262. },
  263. "produces": [
  264. "*/*"
  265. ],
  266. "resourcePath": "/room",
  267. "swaggerVersion": "1.2"
  268. }