aggregator.html.json 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "ApiSpecs": [
  3. {
  4. "HttpVerb": "POST",
  5. "Path": "/api/v1/aggregator",
  6. "Calls": [
  7. {
  8. "Id": 0,
  9. "CurrentPath": "/api/v1/aggregator",
  10. "MethodType": "POST",
  11. "PostForm": null,
  12. "RequestHeader": {
  13. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  14. "Content-Type": " application/json\r",
  15. "X-Forwarded-For": " 127.0.0.1\r"
  16. },
  17. "CommonRequestHeaders": null,
  18. "ResponseHeader": {
  19. "Access-Control-Allow-Credentials": "true",
  20. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  21. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  22. "Access-Control-Allow-Origin": "*",
  23. "Access-Control-Expose-Headers": "Content-Length",
  24. "Access-Control-Max-Age": "86400",
  25. "Content-Type": "application/json; charset=utf-8"
  26. },
  27. "RequestUrlParams": {},
  28. "RequestBody": "{\"tags\":\"\",\"step\":60,\"numerator\":\"$(cpu.idle)\",\"metric\":\"test.idle\",\"hostgroup_id\":343,\"endpoint\":\"testenp\",\"denominator\":\"2\"}",
  29. "ResponseBody": "{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"2\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}",
  30. "ResponseCode": 200
  31. }
  32. ]
  33. },
  34. {
  35. "HttpVerb": "GET",
  36. "Path": "/api/v1/hostgroup/343/aggregators",
  37. "Calls": [
  38. {
  39. "Id": 1,
  40. "CurrentPath": "/api/v1/hostgroup/343/aggregators",
  41. "MethodType": "GET",
  42. "PostForm": null,
  43. "RequestHeader": {
  44. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  45. "X-Forwarded-For": " 127.0.0.1\r"
  46. },
  47. "CommonRequestHeaders": null,
  48. "ResponseHeader": {
  49. "Access-Control-Allow-Credentials": "true",
  50. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  51. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  52. "Access-Control-Allow-Origin": "*",
  53. "Access-Control-Expose-Headers": "Content-Length",
  54. "Access-Control-Max-Age": "86400",
  55. "Content-Type": "application/json; charset=utf-8"
  56. },
  57. "RequestUrlParams": {},
  58. "RequestBody": "",
  59. "ResponseBody": "{\"hostgroup\": \"test_group\", \"aggregators\": [{\"id\":13,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"2\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"},{\"id\":14,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"2\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"},{\"id\":15,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"2\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"},{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"2\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}]}",
  60. "ResponseCode": 200
  61. }
  62. ]
  63. },
  64. {
  65. "HttpVerb": "PUT",
  66. "Path": "/api/v1/aggregator",
  67. "Calls": [
  68. {
  69. "Id": 2,
  70. "CurrentPath": "/api/v1/aggregator",
  71. "MethodType": "PUT",
  72. "PostForm": null,
  73. "RequestHeader": {
  74. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  75. "Content-Type": " application/json\r",
  76. "X-Forwarded-For": " 127.0.0.1\r"
  77. },
  78. "CommonRequestHeaders": null,
  79. "ResponseHeader": {
  80. "Access-Control-Allow-Credentials": "true",
  81. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  82. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  83. "Access-Control-Allow-Origin": "*",
  84. "Access-Control-Expose-Headers": "Content-Length",
  85. "Access-Control-Max-Age": "86400",
  86. "Content-Type": "application/json; charset=utf-8"
  87. },
  88. "RequestUrlParams": {},
  89. "RequestBody": "{\"tags\":\"\",\"step\":60,\"numerator\":\"$(cpu.idle)\",\"metric\":\"test.idle\",\"id\":16,\"endpoint\":\"testenp\",\"denominator\":\"$#\"}",
  90. "ResponseBody": "{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"$#\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}",
  91. "ResponseCode": 200
  92. }
  93. ]
  94. },
  95. {
  96. "HttpVerb": "GET",
  97. "Path": "/api/v1/aggregator/16",
  98. "Calls": [
  99. {
  100. "Id": 3,
  101. "CurrentPath": "/api/v1/aggregator/16",
  102. "MethodType": "GET",
  103. "PostForm": null,
  104. "RequestHeader": {
  105. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  106. "X-Forwarded-For": " 127.0.0.1\r"
  107. },
  108. "CommonRequestHeaders": null,
  109. "ResponseHeader": {
  110. "Access-Control-Allow-Credentials": "true",
  111. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  112. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  113. "Access-Control-Allow-Origin": "*",
  114. "Access-Control-Expose-Headers": "Content-Length",
  115. "Access-Control-Max-Age": "86400",
  116. "Content-Type": "application/json; charset=utf-8"
  117. },
  118. "RequestUrlParams": {},
  119. "RequestBody": "",
  120. "ResponseBody": "{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"$#\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}",
  121. "ResponseCode": 200
  122. }
  123. ]
  124. },
  125. {
  126. "HttpVerb": "DELETE",
  127. "Path": "/api/v1/aggregator/16",
  128. "Calls": [
  129. {
  130. "Id": 4,
  131. "CurrentPath": "/api/v1/aggregator/16",
  132. "MethodType": "DELETE",
  133. "PostForm": null,
  134. "RequestHeader": {
  135. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  136. "X-Forwarded-For": " 127.0.0.1\r"
  137. },
  138. "CommonRequestHeaders": null,
  139. "ResponseHeader": {
  140. "Access-Control-Allow-Credentials": "true",
  141. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  142. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  143. "Access-Control-Allow-Origin": "*",
  144. "Access-Control-Expose-Headers": "Content-Length",
  145. "Access-Control-Max-Age": "86400",
  146. "Content-Type": "application/json; charset=utf-8"
  147. },
  148. "RequestUrlParams": {},
  149. "RequestBody": "",
  150. "ResponseBody": "{\"message\":\"aggregator:16 is deleted\"}",
  151. "ResponseCode": 200
  152. }
  153. ]
  154. }
  155. ]
  156. }