template.html.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. {
  2. "ApiSpecs": [
  3. {
  4. "HttpVerb": "GET",
  5. "Path": "/api/v1/template/178",
  6. "Calls": [
  7. {
  8. "Id": 0,
  9. "CurrentPath": "/api/v1/template/178",
  10. "MethodType": "GET",
  11. "PostForm": null,
  12. "RequestHeader": {
  13. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  14. "X-Forwarded-For": " 127.0.0.1\r"
  15. },
  16. "CommonRequestHeaders": null,
  17. "ResponseHeader": {
  18. "Access-Control-Allow-Credentials": "true",
  19. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  20. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  21. "Access-Control-Allow-Origin": "*",
  22. "Access-Control-Expose-Headers": "Content-Length",
  23. "Access-Control-Max-Age": "86400",
  24. "Content-Type": "application/json; charset=utf-8"
  25. },
  26. "RequestUrlParams": {},
  27. "RequestBody": "",
  28. "ResponseBody": "{}",
  29. "ResponseCode": 200
  30. }
  31. ]
  32. },
  33. {
  34. "HttpVerb": "GET",
  35. "Path": "/api/v1/user/auth_session",
  36. "Calls": [
  37. {
  38. "Id": 1,
  39. "CurrentPath": "/api/v1/user/auth_session",
  40. "MethodType": "GET",
  41. "PostForm": null,
  42. "RequestHeader": {
  43. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  44. "X-Forwarded-For": " 127.0.0.1\r"
  45. },
  46. "CommonRequestHeaders": null,
  47. "ResponseHeader": {
  48. "Access-Control-Allow-Credentials": "true",
  49. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  50. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  51. "Access-Control-Allow-Origin": "*",
  52. "Access-Control-Expose-Headers": "Content-Length",
  53. "Access-Control-Max-Age": "86400",
  54. "Content-Type": "application/json; charset=utf-8"
  55. },
  56. "RequestUrlParams": {},
  57. "RequestBody": "",
  58. "ResponseBody": "{\"message\":\"session is vaild!\"}",
  59. "ResponseCode": 200
  60. }
  61. ]
  62. },
  63. {
  64. "HttpVerb": "GET",
  65. "Path": "/api/v1/template",
  66. "Calls": [
  67. {
  68. "Id": 2,
  69. "CurrentPath": "/api/v1/template",
  70. "MethodType": "GET",
  71. "PostForm": null,
  72. "RequestHeader": {
  73. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  74. "X-Forwarded-For": " 127.0.0.1\r"
  75. },
  76. "CommonRequestHeaders": null,
  77. "ResponseHeader": {
  78. "Access-Control-Allow-Credentials": "true",
  79. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  80. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  81. "Access-Control-Allow-Origin": "*",
  82. "Access-Control-Expose-Headers": "Content-Length",
  83. "Access-Control-Max-Age": "86400",
  84. "Content-Type": "application/json; charset=utf-8"
  85. },
  86. "RequestUrlParams": {},
  87. "RequestBody": "",
  88. "ResponseBody": "[{\"id\":1,\"tpl_name\":\"cpu.board\",\"parent_id\":0,\"action_id\":5,\"create_user\":\"usera\"},{\"id\":2,\"tpl_name\":\"traffic checking\",\"parent_id\":0,\"action_id\":6,\"create_user\":\"userb\"},{\"id\":3,\"tpl_name\":\"cputest\",\"parent_id\":0,\"action_id\":7,\"create_user\":\"userc\"},{\"id\":5,\"tpl_name\":\"all metrics base\",\"parent_id\":0,\"action_id\":12,\"create_user\":\"root\"}]",
  89. "ResponseCode": 200
  90. }
  91. ]
  92. },
  93. {
  94. "HttpVerb": "POST",
  95. "Path": "/api/v1/template",
  96. "Calls": [
  97. {
  98. "Id": 3,
  99. "CurrentPath": "/api/v1/template",
  100. "MethodType": "POST",
  101. "PostForm": null,
  102. "RequestHeader": {
  103. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  104. "Content-Type": " application/json\r",
  105. "X-Forwarded-For": " 127.0.0.1\r"
  106. },
  107. "CommonRequestHeaders": null,
  108. "ResponseHeader": {
  109. "Access-Control-Allow-Credentials": "true",
  110. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  111. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  112. "Access-Control-Allow-Origin": "*",
  113. "Access-Control-Expose-Headers": "Content-Length",
  114. "Access-Control-Max-Age": "86400",
  115. "Content-Type": "application/json; charset=utf-8"
  116. },
  117. "RequestUrlParams": "{\"action\":{\"id\":141,\"uic\":\"admin,mm1\",\"url\":\"\",\"callback\":0,\"before_callback_sms\":0,\"before_callback_mail\":0,\"after_callback_sms\":0,\"after_callback_mail\":0},\"stratges\":[{\"id\":686,\"metric\":\"xxx.check\",\"tags\":\"name=xxx\",\"max_step\":3,\"priority\":2,\"func\":\"all(#2)\",\"op\":\"<\",\"right_value\":\"1\",\"note\":\"xxx服务异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":178},{\"id\":687,\"metric\":\"xxx.sync\",\"tags\":\"\",\"max_step\":3,\"priority\":2,\"func\":\"all(#3)\",\"op\":\"!=\",\"right_value\":\"0\",\"note\":\"XXX同步异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":178},{\"id\":688,\"metric\":\"bbb.check.mq\",\"tags\":\"\",\"max_step\":3,\"priority\":2,\"func\":\"all(#3)\",\"op\":\"==\",\"right_value\":\"1\",\"note\":\"bbb连接MQ异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":178},{\"id\":793,\"metric\":\"aaa.proc.num\",\"tags\":\"\",\"max_step\":3,\"priority\":2,\"func\":\"all(#3)\",\"op\":\"==\",\"right_value\":\"1\",\"note\":\"aaaa 进程大于5\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":178}],\"template\":{\"id\":178,\"tpl_name\":\"TemplateA\",\"parent_id\":0,\"action_id\":141,\"create_user\":\"root\"}}",
  118. "RequestBody": "{\"parent_id\":0,\"name\":\"AtmpForTesting\"}",
  119. "ResponseBody": "{\"message\":\"template created\"}",
  120. "ResponseCode": 200
  121. }
  122. ]
  123. },
  124. {
  125. "HttpVerb": "POST",
  126. "Path": "/api/v1/template/action",
  127. "Calls": [
  128. {
  129. "Id": 4,
  130. "CurrentPath": "/api/v1/template/action",
  131. "MethodType": "POST",
  132. "PostForm": null,
  133. "RequestHeader": {
  134. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  135. "Content-Type": " application/json\r",
  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": "{\"url\":\"\",\"uic\":\"test,tt2\",\"tpl_id\":225,\"callback\":1,\"before_callback_sms\":0,\"before_callback_mail\":0,\"after_callback_sms\":0,\"after_callback_mail\":0}",
  150. "ResponseBody": "{\"message\":\"action is created and bind to template: 225\"}",
  151. "ResponseCode": 200
  152. }
  153. ]
  154. },
  155. {
  156. "HttpVerb": "PUT",
  157. "Path": "/api/v1/template",
  158. "Calls": [
  159. {
  160. "Id": 5,
  161. "CurrentPath": "/api/v1/template",
  162. "MethodType": "PUT",
  163. "PostForm": null,
  164. "RequestHeader": {
  165. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  166. "Content-Type": " application/json\r",
  167. "X-Forwarded-For": " 127.0.0.1\r"
  168. },
  169. "CommonRequestHeaders": null,
  170. "ResponseHeader": {
  171. "Access-Control-Allow-Credentials": "true",
  172. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  173. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  174. "Access-Control-Allow-Origin": "*",
  175. "Access-Control-Expose-Headers": "Content-Length",
  176. "Access-Control-Max-Age": "86400",
  177. "Content-Type": "application/json; charset=utf-8"
  178. },
  179. "RequestUrlParams": {},
  180. "RequestBody": "{\"tpl_id\":225,\"parent_id\":0,\"name\":\"AtmpForTesting2\"}",
  181. "ResponseBody": "{\"message\":\"template updated\"}",
  182. "ResponseCode": 200
  183. }
  184. ]
  185. },
  186. {
  187. "HttpVerb": "PUT",
  188. "Path": "/api/v1/template/action",
  189. "Calls": [
  190. {
  191. "Id": 6,
  192. "CurrentPath": "/api/v1/template/action",
  193. "MethodType": "PUT",
  194. "PostForm": null,
  195. "RequestHeader": {
  196. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  197. "Content-Type": " application/json\r",
  198. "X-Forwarded-For": " 127.0.0.1\r"
  199. },
  200. "CommonRequestHeaders": null,
  201. "ResponseHeader": {
  202. "Access-Control-Allow-Credentials": "true",
  203. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  204. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  205. "Access-Control-Allow-Origin": "*",
  206. "Access-Control-Expose-Headers": "Content-Length",
  207. "Access-Control-Max-Age": "86400",
  208. "Content-Type": "application/json; charset=utf-8"
  209. },
  210. "RequestUrlParams": {},
  211. "RequestBody": "{\"url\":\"\",\"uic\":\"test,tt2,tt3\",\"id\":175,\"callback\":1,\"before_callback_sms\":0,\"before_callback_mail\":0,\"after_callback_sms\":0,\"after_callback_mail\":0}",
  212. "ResponseBody": "{\"message\":\"action is updated, row affected: 1\"}",
  213. "ResponseCode": 200
  214. }
  215. ]
  216. },
  217. {
  218. "HttpVerb": "DELETE",
  219. "Path": "/api/v1/template/225",
  220. "Calls": [
  221. {
  222. "Id": 7,
  223. "CurrentPath": "/api/v1/template/225",
  224. "MethodType": "DELETE",
  225. "PostForm": null,
  226. "RequestHeader": {
  227. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  228. "X-Forwarded-For": " 127.0.0.1\r"
  229. },
  230. "CommonRequestHeaders": null,
  231. "ResponseHeader": {
  232. "Access-Control-Allow-Credentials": "true",
  233. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  234. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  235. "Access-Control-Allow-Origin": "*",
  236. "Access-Control-Expose-Headers": "Content-Length",
  237. "Access-Control-Max-Age": "86400",
  238. "Content-Type": "application/json; charset=utf-8"
  239. },
  240. "RequestUrlParams": {},
  241. "RequestBody": "",
  242. "ResponseBody": "{\"message\":\"template 225 has been deleted\"}",
  243. "ResponseCode": 200
  244. }
  245. ]
  246. },
  247. {
  248. "HttpVerb": "GET",
  249. "Path": "/api/v1/strategy",
  250. "Calls": [
  251. {
  252. "Id": 8,
  253. "CurrentPath": "/api/v1/strategy",
  254. "MethodType": "GET",
  255. "PostForm": null,
  256. "RequestHeader": {
  257. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  258. "X-Forwarded-For": " 127.0.0.1\r"
  259. },
  260. "CommonRequestHeaders": null,
  261. "ResponseHeader": {
  262. "Access-Control-Allow-Credentials": "true",
  263. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  264. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  265. "Access-Control-Allow-Origin": "*",
  266. "Access-Control-Expose-Headers": "Content-Length",
  267. "Access-Control-Max-Age": "86400",
  268. "Content-Type": "application/json; charset=utf-8"
  269. },
  270. "RequestUrlParams": {
  271. "tid": "221"
  272. },
  273. "RequestBody": "",
  274. "ResponseBody": "[{\"id\":893,\"metric\":\"proc.num\",\"tags\":\"name=redis-server\",\"max_step\":3,\"priority\":2,\"func\":\"all(#2)\",\"op\":\"\\u003c\",\"right_value\":\"1\",\"note\":\"FWRedis服务异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":894,\"metric\":\"proc.num\",\"tags\":\"name=beam.smp\",\"max_step\":3,\"priority\":2,\"func\":\"all(#3)\",\"op\":\"\\u003c\",\"right_value\":\"1\",\"note\":\"FWCM进程状态异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":895,\"metric\":\"proc.num\",\"tags\":\"cmdline=fwlog\",\"max_step\":3,\"priority\":3,\"func\":\"all(#5)\",\"op\":\"\\u003c\",\"right_value\":\"2\",\"note\":\"fwlog服务异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":896,\"metric\":\"fcd.oldworker.count\",\"tags\":\"\",\"max_step\":3,\"priority\":3,\"func\":\"all(#1)\",\"op\":\"\\u003e\",\"right_value\":\"10\",\"note\":\"FastCache Old Worker 数量大于10\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":897,\"metric\":\"service.logs.jifei\",\"tags\":\"\",\"max_step\":1,\"priority\":4,\"func\":\"all(#3)\",\"op\":\"\\u003e\",\"right_value\":\"10\",\"note\":\"fastcache计费日志堆积\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":898,\"metric\":\"proc.num\",\"tags\":\"cmdline=syslog\",\"max_step\":3,\"priority\":4,\"func\":\"all(#1)\",\"op\":\"\\u003c\",\"right_value\":\"1\",\"note\":\"syslog/rsyslog服务异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":899,\"metric\":\"proc.num\",\"tags\":\"name=fwsa2d\",\"max_step\":3,\"priority\":2,\"func\":\"all(#2)\",\"op\":\"\\u003c\",\"right_value\":\"1\",\"note\":\"FWSA2服务异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":900,\"metric\":\"redis.log.null\",\"tags\":\"\",\"max_step\":3,\"priority\":2,\"func\":\"all(#3)\",\"op\":\"!=\",\"right_value\":\"0\",\"note\":\"FWRedis同步异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221},{\"id\":901,\"metric\":\"check.fwsa2\",\"tags\":\"\",\"max_step\":3,\"priority\":2,\"func\":\"all(#3)\",\"op\":\"==\",\"right_value\":\"1\",\"note\":\"Fwsa2连接MQ异常\",\"run_begin\":\"\",\"run_end\":\"\",\"tpl_id\":221}]",
  275. "ResponseCode": 200
  276. }
  277. ]
  278. },
  279. {
  280. "HttpVerb": "POST",
  281. "Path": "/api/v1/strategy",
  282. "Calls": [
  283. {
  284. "Id": 9,
  285. "CurrentPath": "/api/v1/strategy",
  286. "MethodType": "POST",
  287. "PostForm": null,
  288. "RequestHeader": {
  289. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  290. "Content-Type": " application/json\r",
  291. "X-Forwarded-For": " 127.0.0.1\r"
  292. },
  293. "CommonRequestHeaders": null,
  294. "ResponseHeader": {
  295. "Access-Control-Allow-Credentials": "true",
  296. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  297. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  298. "Access-Control-Allow-Origin": "*",
  299. "Access-Control-Expose-Headers": "Content-Length",
  300. "Access-Control-Max-Age": "86400",
  301. "Content-Type": "application/json; charset=utf-8"
  302. },
  303. "RequestUrlParams": {},
  304. "RequestBody": "{\"tpl_id\":221,\"tags\":\"\",\"run_end\":\"24:00\",\"run_begin\":\"00:00\",\"right_value\":\"1\",\"priority\":1,\"op\":\"==\",\"note\":\"this is a test\",\"metric\":\"agent.alive\",\"max_step\":3,\"func\":\"all(#3)\"}",
  305. "ResponseBody": "{\"message\":\"stragtegy created\"}",
  306. "ResponseCode": 200
  307. }
  308. ]
  309. },
  310. {
  311. "HttpVerb": "GET",
  312. "Path": "/api/v1/strategy/904",
  313. "Calls": [
  314. {
  315. "Id": 10,
  316. "CurrentPath": "/api/v1/strategy/904",
  317. "MethodType": "GET",
  318. "PostForm": null,
  319. "RequestHeader": {
  320. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  321. "X-Forwarded-For": " 127.0.0.1\r"
  322. },
  323. "CommonRequestHeaders": null,
  324. "ResponseHeader": {
  325. "Access-Control-Allow-Credentials": "true",
  326. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  327. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  328. "Access-Control-Allow-Origin": "*",
  329. "Access-Control-Expose-Headers": "Content-Length",
  330. "Access-Control-Max-Age": "86400",
  331. "Content-Type": "application/json; charset=utf-8"
  332. },
  333. "RequestUrlParams": {},
  334. "RequestBody": "",
  335. "ResponseBody": "{\"id\":904,\"metric\":\"agent.alive\",\"tags\":\"\",\"max_step\":3,\"priority\":1,\"func\":\"all(#3)\",\"op\":\"==\",\"right_value\":\"1\",\"note\":\"this is a test\",\"run_begin\":\"00:00\",\"run_end\":\"24:00\",\"tpl_id\":221}",
  336. "ResponseCode": 200
  337. }
  338. ]
  339. },
  340. {
  341. "HttpVerb": "PUT",
  342. "Path": "/api/v1/strategy",
  343. "Calls": [
  344. {
  345. "Id": 11,
  346. "CurrentPath": "/api/v1/strategy",
  347. "MethodType": "PUT",
  348. "PostForm": null,
  349. "RequestHeader": {
  350. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  351. "Content-Type": " application/json\r",
  352. "X-Forwarded-For": " 127.0.0.1\r"
  353. },
  354. "CommonRequestHeaders": null,
  355. "ResponseHeader": {
  356. "Access-Control-Allow-Credentials": "true",
  357. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  358. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  359. "Access-Control-Allow-Origin": "*",
  360. "Access-Control-Expose-Headers": "Content-Length",
  361. "Access-Control-Max-Age": "86400",
  362. "Content-Type": "application/json; charset=utf-8"
  363. },
  364. "RequestUrlParams": {},
  365. "RequestBody": "{\"tags\":\"\",\"run_end\":\"\",\"run_begin\":\"\",\"right_value\":\"1\",\"priority\":2,\"op\":\"==\",\"note\":\"this is a test\",\"metric\":\"agent.alive\",\"max_step\":3,\"id\":904,\"func\":\"all(#3)\"}",
  366. "ResponseBody": "{\"message\":\"stragtegy:904 has been updated\"}",
  367. "ResponseCode": 200
  368. }
  369. ]
  370. },
  371. {
  372. "HttpVerb": "DELETE",
  373. "Path": "/api/v1/strategy/904",
  374. "Calls": [
  375. {
  376. "Id": 12,
  377. "CurrentPath": "/api/v1/strategy/904",
  378. "MethodType": "DELETE",
  379. "PostForm": null,
  380. "RequestHeader": {
  381. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  382. "X-Forwarded-For": " 127.0.0.1\r"
  383. },
  384. "CommonRequestHeaders": null,
  385. "ResponseHeader": {
  386. "Access-Control-Allow-Credentials": "true",
  387. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  388. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  389. "Access-Control-Allow-Origin": "*",
  390. "Access-Control-Expose-Headers": "Content-Length",
  391. "Access-Control-Max-Age": "86400",
  392. "Content-Type": "application/json; charset=utf-8"
  393. },
  394. "RequestUrlParams": {},
  395. "RequestBody": "",
  396. "ResponseBody": "{\"message\":\"strategy:904 has been deleted\"}",
  397. "ResponseCode": 200
  398. }
  399. ]
  400. },
  401. {
  402. "HttpVerb": "GET",
  403. "Path": "/api/v1/metric/default_list",
  404. "Calls": [
  405. {
  406. "Id": 13,
  407. "CurrentPath": "/api/v1/metric/default_list",
  408. "MethodType": "GET",
  409. "PostForm": null,
  410. "RequestHeader": {
  411. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  412. "X-Forwarded-For": " 127.0.0.1\r"
  413. },
  414. "CommonRequestHeaders": null,
  415. "ResponseHeader": {
  416. "Access-Control-Allow-Credentials": "true",
  417. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  418. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  419. "Access-Control-Allow-Origin": "*",
  420. "Access-Control-Expose-Headers": "Content-Length",
  421. "Access-Control-Max-Age": "86400",
  422. "Content-Type": "application/json; charset=utf-8"
  423. },
  424. "RequestUrlParams": {},
  425. "RequestBody": "",
  426. "ResponseBody": "[\"cpu.busy\",\"cpu.cnt\",\"cpu.guest\",\"cpu.idle\",\"cpu.iowait\",\"cpu.irq\",\"cpu.nice\",\"cpu.softirq\",\"cpu.steal\",\"cpu.system\",\"cpu.user\",\"df.bytes.free\",\"df.bytes.free.percent\",\"df.bytes.total\",\"df.bytes.used\",\"df.bytes.used.percent\",\"df.inodes.free\",\"df.inodes.free.percent\",\"df.inodes.total\",\"df.inodes.used\",\"df.inodes.used.percent\",\"disk.io.avgqu-sz\",\"disk.io.avgrq_sz\",\"disk.io.await\",\"disk.io.ios_in_progress\",\"disk.io.msec_read\",\"disk.io.msec_total\",\"disk.io.msec_weighted_total\",\"disk.io.msec_write\",\"disk.io.read_bytes\",\"disk.io.read_merged\",\"disk.io.read_requests\",\"disk.io.read_sectors\",\"disk.io.svctm\",\"disk.io.util\",\"disk.io.write_bytes\",\"disk.io.write_merged\",\"disk.io.write_requests\",\"disk.io.write_sectors\",\"kernel.maxfiles\",\"kernel.maxproc\",\"load.15min\",\"load.1min\",\"load.5min\",\"mem.memfree\",\"mem.memfree.percent\",\"mem.memtotal\",\"mem.memused\",\"mem.memused.percent\",\"mem.swapfree\",\"mem.swapfree.percent\",\"mem.swaptotal\",\"mem.swapused\",\"mem.swapused.percent\",\"net.if.in.bytes\",\"net.if.in.compressed\",\"net.if.in.dropped\",\"net.if.in.errors\",\"net.if.in.fifo.errs\",\"net.if.in.frame.errs\",\"net.if.in.multicast\",\"net.if.in.packets\",\"net.if.out.bytes\",\"net.if.out.carrier.errs\",\"net.if.out.collisions\",\"net.if.out.compressed\",\"net.if.out.dropped\",\"net.if.out.errors\",\"net.if.out.fifo.errs\",\"net.if.out.packets\",\"net.if.total.bytes\",\"net.if.total.dropped\",\"net.if.total.errors\",\"net.if.total.packets\",\"net.port.listen\",\"proc.num\",\"\"]",
  427. "ResponseCode": 200
  428. }
  429. ]
  430. },
  431. {
  432. "HttpVerb": "GET",
  433. "Path": "/api/v1/template_simple",
  434. "Calls": [
  435. {
  436. "Id": 0,
  437. "CurrentPath": "/api/v1/template_simple",
  438. "MethodType": "GET",
  439. "PostForm": null,
  440. "RequestHeader": {
  441. "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
  442. "X-Forwarded-For": " 127.0.0.1\r"
  443. },
  444. "CommonRequestHeaders": null,
  445. "ResponseHeader": {
  446. "Access-Control-Allow-Credentials": "true",
  447. "Access-Control-Allow-Headers": "Content-Type, Content-Length, Apitoken",
  448. "Access-Control-Allow-Methods": "POST, GET, OPTIONS, PUT, DELETE, UPDATE",
  449. "Access-Control-Allow-Origin": "*",
  450. "Access-Control-Expose-Headers": "Content-Length",
  451. "Access-Control-Max-Age": "86400",
  452. "Content-Type": "application/json; charset=utf-8"
  453. },
  454. "RequestUrlParams": {
  455. "q": "a"
  456. },
  457. "RequestBody": "",
  458. "ResponseBody": "[{\"id\":63,\"tpl_name\":\"AllCacheServer\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"},{\"id\":53,\"tpl_name\":\"arch2_monitor\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"},{\"id\":220,\"tpl_name\":\"Bandwidth_trends\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"},{\"id\":42,\"tpl_name\":\"basic\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"},{\"id\":149,\"tpl_name\":\"bossapi\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"}]",
  459. "ResponseCode": 200
  460. }
  461. ]
  462. }
  463. ]
  464. }