1
0

template.html 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <title> API Documentation </title>
  5. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
  6. <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
  8. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
  10. <style type="text/css">
  11. body {
  12. font-family: 'Roboto', sans-serif;
  13. }
  14. .hidden {
  15. display:none;
  16. }
  17. pre {
  18. outline: 1px solid #ccc;
  19. padding: 5px; margin: 5px;
  20. }
  21. .string { color: green; }
  22. .number { color: darkorange; }
  23. .boolean { color: blue; }
  24. .null { color: magenta; }
  25. .key { color: red; }
  26. </style>
  27. <style type="text/css">
  28. pre.prettyprint {
  29. border: 1px solid #ccc;
  30. margin-bottom: 0;
  31. padding: 9.5px;
  32. }
  33. </style>
  34. <script>
  35. function syntaxHighlight(json) {
  36. json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  37. return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
  38. var cls = 'number';
  39. if (/^"/.test(match)) {
  40. if (/:$/.test(match)) {
  41. cls = 'key';
  42. } else {
  43. cls = 'string';
  44. }
  45. } else if (/true|false/.test(match)) {
  46. cls = 'boolean';
  47. } else if (/null/.test(match)) {
  48. cls = 'null';
  49. }
  50. return '<span class="' + cls + '">' + match + '</span>';
  51. });
  52. }
  53. function spaceJson(json){
  54. var validJson = JSON.parse(json);
  55. return JSON.stringify(validJson, undefined, 4);
  56. }
  57. </script>
  58. </head>
  59. <body>
  60. <nav class="navbar navbar-default navbar-fixed-top">
  61. <div class="container-fluid">
  62. <div class="navbar-header">
  63. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
  64. data-target="#bs-example-navbar-collapse-1">
  65. <span class="sr-only">Toggle navigation</span>
  66. <span class="icon-bar"></span>
  67. <span class="icon-bar"></span>
  68. <span class="icon-bar"></span>
  69. </button>
  70. <a class="navbar-brand" href="#">Gin</a>
  71. <p class="navbar-text">Developed by Gophers at <a href="http://betacraft.co">Betacraft</a></p>
  72. </div>
  73. </div>
  74. </nav>
  75. <div class="container-fluid" style="margin-top: 70px;margin-bottom: 20px;">
  76. <div class="container-fluid">
  77. <div class="col-md-4">
  78. <div class="panel panel-default">
  79. <div class="panel-heading">Base Urls</div>
  80. <div class="panel-body">
  81. <p>Production : <strong>/api/v1</strong></p>
  82. <p>Staging : <strong>/api/v1</strong></p>
  83. </div>
  84. </div>
  85. <ul class="nav nav-pills nav-stacked" role="tablist">
  86. <li role="presentation"><a href="#0top" role="tab" data-toggle="tab">GET : /api/v1/template/178</a></li>
  87. <li role="presentation"><a href="#1top" role="tab" data-toggle="tab">GET : /api/v1/user/auth_session</a></li>
  88. <li role="presentation"><a href="#2top" role="tab" data-toggle="tab">GET : /api/v1/template</a></li>
  89. <li role="presentation"><a href="#3top" role="tab" data-toggle="tab">POST : /api/v1/template</a></li>
  90. <li role="presentation"><a href="#4top" role="tab" data-toggle="tab">POST : /api/v1/template/action</a></li>
  91. <li role="presentation"><a href="#5top" role="tab" data-toggle="tab">PUT : /api/v1/template</a></li>
  92. <li role="presentation"><a href="#6top" role="tab" data-toggle="tab">PUT : /api/v1/template/action</a></li>
  93. <li role="presentation"><a href="#7top" role="tab" data-toggle="tab">DELETE : /api/v1/template/225</a></li>
  94. <li role="presentation"><a href="#8top" role="tab" data-toggle="tab">GET : /api/v1/strategy</a></li>
  95. <li role="presentation"><a href="#9top" role="tab" data-toggle="tab">POST : /api/v1/strategy</a></li>
  96. <li role="presentation"><a href="#10top" role="tab" data-toggle="tab">GET : /api/v1/strategy/904</a></li>
  97. <li role="presentation"><a href="#11top" role="tab" data-toggle="tab">PUT : /api/v1/strategy</a></li>
  98. <li role="presentation"><a href="#12top" role="tab" data-toggle="tab">DELETE : /api/v1/strategy/904</a></li>
  99. <li role="presentation"><a href="#13top" role="tab" data-toggle="tab">GET : /api/v1/metric/default_list</a></li>
  100. <li role="presentation"><a href="#14top" role="tab" data-toggle="tab">GET : /api/v1/template_simple</a></li>
  101. <ul>
  102. </div>
  103. <div class="col-md-8 tab-content">
  104. <div id="0top" role="tabpanel" class="tab-pane col-md-10">
  105. <p> <H4> Request Headers </H4> </p>
  106. <table class="table table-bordered table-striped">
  107. <tr>
  108. <th>Key</th>
  109. <th>Value</th>
  110. </tr>
  111. <tr>
  112. <td>Apitoken</td>
  113. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  114. </tr>
  115. <tr>
  116. <td>X-Forwarded-For</td>
  117. <td> 127.0.0.1
  118. </td>
  119. </tr>
  120. </table>
  121. <p><h4> Response Code</h4></p>
  122. <pre class="prettyprint lang-json">200</pre>
  123. <p><h4> Response Headers</h4></p>
  124. <table class="table table-bordered table-striped">
  125. <tr>
  126. <th>Key</th>
  127. <th>Value</th>
  128. </tr>
  129. <tr>
  130. <td>Access-Control-Allow-Credentials</td>
  131. <td> true</td>
  132. </tr>
  133. <tr>
  134. <td>Access-Control-Allow-Headers</td>
  135. <td> Content-Type, Content-Length, Apitoken</td>
  136. </tr>
  137. <tr>
  138. <td>Access-Control-Allow-Methods</td>
  139. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  140. </tr>
  141. <tr>
  142. <td>Access-Control-Allow-Origin</td>
  143. <td> *</td>
  144. </tr>
  145. <tr>
  146. <td>Access-Control-Expose-Headers</td>
  147. <td> Content-Length</td>
  148. </tr>
  149. <tr>
  150. <td>Access-Control-Max-Age</td>
  151. <td> 86400</td>
  152. </tr>
  153. <tr>
  154. <td>Content-Type</td>
  155. <td> application/json; charset=utf-8</td>
  156. </tr>
  157. </table>
  158. <p> <H4> Response Body </H4> </p>
  159. <pre class="prettyprint" id="response-body-0-0">{"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"}}</pre>
  160. <script>
  161. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  162. if (responseHeader["Content-Type"] === "application/json"){
  163. try {
  164. var jsonStr = spaceJson("{\"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\"}}");
  165. document.getElementById('response-body-0-0').innerHTML = syntaxHighlight(jsonStr);
  166. } catch (e) {
  167. }
  168. }
  169. </script>
  170. <hr>
  171. </div>
  172. <div id="1top" role="tabpanel" class="tab-pane col-md-10">
  173. <p> <H4> Request Headers </H4> </p>
  174. <table class="table table-bordered table-striped">
  175. <tr>
  176. <th>Key</th>
  177. <th>Value</th>
  178. </tr>
  179. <tr>
  180. <td>Apitoken</td>
  181. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  182. </tr>
  183. <tr>
  184. <td>X-Forwarded-For</td>
  185. <td> 127.0.0.1
  186. </td>
  187. </tr>
  188. </table>
  189. <p><h4> Response Code</h4></p>
  190. <pre class="prettyprint lang-json">200</pre>
  191. <p><h4> Response Headers</h4></p>
  192. <table class="table table-bordered table-striped">
  193. <tr>
  194. <th>Key</th>
  195. <th>Value</th>
  196. </tr>
  197. <tr>
  198. <td>Access-Control-Allow-Credentials</td>
  199. <td> true</td>
  200. </tr>
  201. <tr>
  202. <td>Access-Control-Allow-Headers</td>
  203. <td> Content-Type, Content-Length, Apitoken</td>
  204. </tr>
  205. <tr>
  206. <td>Access-Control-Allow-Methods</td>
  207. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  208. </tr>
  209. <tr>
  210. <td>Access-Control-Allow-Origin</td>
  211. <td> *</td>
  212. </tr>
  213. <tr>
  214. <td>Access-Control-Expose-Headers</td>
  215. <td> Content-Length</td>
  216. </tr>
  217. <tr>
  218. <td>Access-Control-Max-Age</td>
  219. <td> 86400</td>
  220. </tr>
  221. <tr>
  222. <td>Content-Type</td>
  223. <td> application/json; charset=utf-8</td>
  224. </tr>
  225. </table>
  226. <p> <H4> Response Body </H4> </p>
  227. <pre class="prettyprint" id="response-body-1-0">{&#34;message&#34;:&#34;session is vaild!&#34;}</pre>
  228. <script>
  229. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  230. if (responseHeader["Content-Type"] === "application/json"){
  231. try {
  232. var jsonStr = spaceJson("{\"message\":\"session is vaild!\"}");
  233. document.getElementById('response-body-1-0').innerHTML = syntaxHighlight(jsonStr);
  234. } catch (e) {
  235. }
  236. }
  237. </script>
  238. <hr>
  239. </div>
  240. <div id="2top" role="tabpanel" class="tab-pane col-md-10">
  241. <p> <H4> Request Headers </H4> </p>
  242. <table class="table table-bordered table-striped">
  243. <tr>
  244. <th>Key</th>
  245. <th>Value</th>
  246. </tr>
  247. <tr>
  248. <td>Apitoken</td>
  249. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  250. </tr>
  251. <tr>
  252. <td>X-Forwarded-For</td>
  253. <td> 127.0.0.1
  254. </td>
  255. </tr>
  256. </table>
  257. <p><h4> Response Code</h4></p>
  258. <pre class="prettyprint lang-json">200</pre>
  259. <p><h4> Response Headers</h4></p>
  260. <table class="table table-bordered table-striped">
  261. <tr>
  262. <th>Key</th>
  263. <th>Value</th>
  264. </tr>
  265. <tr>
  266. <td>Access-Control-Allow-Credentials</td>
  267. <td> true</td>
  268. </tr>
  269. <tr>
  270. <td>Access-Control-Allow-Headers</td>
  271. <td> Content-Type, Content-Length, Apitoken</td>
  272. </tr>
  273. <tr>
  274. <td>Access-Control-Allow-Methods</td>
  275. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  276. </tr>
  277. <tr>
  278. <td>Access-Control-Allow-Origin</td>
  279. <td> *</td>
  280. </tr>
  281. <tr>
  282. <td>Access-Control-Expose-Headers</td>
  283. <td> Content-Length</td>
  284. </tr>
  285. <tr>
  286. <td>Access-Control-Max-Age</td>
  287. <td> 86400</td>
  288. </tr>
  289. <tr>
  290. <td>Content-Type</td>
  291. <td> application/json; charset=utf-8</td>
  292. </tr>
  293. </table>
  294. <p> <H4> Response Body </H4> </p>
  295. <pre class="prettyprint" id="response-body-2-0">[{"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"}]</pre>
  296. <script>
  297. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  298. if (responseHeader["Content-Type"] === "application/json"){
  299. try {
  300. var jsonStr = spaceJson("[{\"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\"}]");
  301. document.getElementById('response-body-2-0').innerHTML = syntaxHighlight(jsonStr);
  302. } catch (e) {
  303. }
  304. }
  305. </script>
  306. <hr>
  307. </div>
  308. <div id="3top" role="tabpanel" class="tab-pane col-md-10">
  309. <p> <H4> Request Headers </H4> </p>
  310. <table class="table table-bordered table-striped">
  311. <tr>
  312. <th>Key</th>
  313. <th>Value</th>
  314. </tr>
  315. <tr>
  316. <td>Apitoken</td>
  317. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  318. </tr>
  319. <tr>
  320. <td>Content-Type</td>
  321. <td> application/json
  322. </td>
  323. </tr>
  324. <tr>
  325. <td>X-Forwarded-For</td>
  326. <td> 127.0.0.1
  327. </td>
  328. </tr>
  329. </table>
  330. <p> <H4> Request Body </H4> </p>
  331. <pre id="request-body-3-0" class="prettyprint">{&#34;parent_id&#34;:0,&#34;name&#34;:&#34;AtmpForTesting&#34;}</pre>
  332. <script>
  333. var requestHeader ={"Apitoken":"{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}","Content-Type":" application/json\r","X-Forwarded-For":" 127.0.0.1\r"};
  334. if (requestHeader["Content-Type"] === "application/json"){
  335. try {
  336. var jsonStr = spaceJson("{\"parent_id\":0,\"name\":\"AtmpForTesting\"}");
  337. document.getElementById('request-body3-0').innerHTML = syntaxHighlight(jsonStr);
  338. } catch (e) {
  339. }
  340. }
  341. </script>
  342. <p><h4> Response Code</h4></p>
  343. <pre class="prettyprint lang-json">200</pre>
  344. <p><h4> Response Headers</h4></p>
  345. <table class="table table-bordered table-striped">
  346. <tr>
  347. <th>Key</th>
  348. <th>Value</th>
  349. </tr>
  350. <tr>
  351. <td>Access-Control-Allow-Credentials</td>
  352. <td> true</td>
  353. </tr>
  354. <tr>
  355. <td>Access-Control-Allow-Headers</td>
  356. <td> Content-Type, Content-Length, Apitoken</td>
  357. </tr>
  358. <tr>
  359. <td>Access-Control-Allow-Methods</td>
  360. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  361. </tr>
  362. <tr>
  363. <td>Access-Control-Allow-Origin</td>
  364. <td> *</td>
  365. </tr>
  366. <tr>
  367. <td>Access-Control-Expose-Headers</td>
  368. <td> Content-Length</td>
  369. </tr>
  370. <tr>
  371. <td>Access-Control-Max-Age</td>
  372. <td> 86400</td>
  373. </tr>
  374. <tr>
  375. <td>Content-Type</td>
  376. <td> application/json; charset=utf-8</td>
  377. </tr>
  378. </table>
  379. <p> <H4> Response Body </H4> </p>
  380. <pre class="prettyprint" id="response-body-3-0">{&#34;message&#34;:&#34;template created&#34;}</pre>
  381. <script>
  382. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  383. if (responseHeader["Content-Type"] === "application/json"){
  384. try {
  385. var jsonStr = spaceJson("{\"message\":\"template created\"}");
  386. document.getElementById('response-body-3-0').innerHTML = syntaxHighlight(jsonStr);
  387. } catch (e) {
  388. }
  389. }
  390. </script>
  391. <hr>
  392. </div>
  393. <div id="4top" role="tabpanel" class="tab-pane col-md-10">
  394. <p> <H4> Request Headers </H4> </p>
  395. <table class="table table-bordered table-striped">
  396. <tr>
  397. <th>Key</th>
  398. <th>Value</th>
  399. </tr>
  400. <tr>
  401. <td>Apitoken</td>
  402. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  403. </tr>
  404. <tr>
  405. <td>Content-Type</td>
  406. <td> application/json
  407. </td>
  408. </tr>
  409. <tr>
  410. <td>X-Forwarded-For</td>
  411. <td> 127.0.0.1
  412. </td>
  413. </tr>
  414. </table>
  415. <p> <H4> Request Body </H4> </p>
  416. <pre id="request-body-4-0" class="prettyprint">{&#34;url&#34;:&#34;&#34;,&#34;uic&#34;:&#34;test,tt2&#34;,&#34;tpl_id&#34;:225,&#34;callback&#34;:1,&#34;before_callback_sms&#34;:0,&#34;before_callback_mail&#34;:0,&#34;after_callback_sms&#34;:0,&#34;after_callback_mail&#34;:0}</pre>
  417. <script>
  418. var requestHeader ={"Apitoken":"{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}","Content-Type":" application/json\r","X-Forwarded-For":" 127.0.0.1\r"};
  419. if (requestHeader["Content-Type"] === "application/json"){
  420. try {
  421. var jsonStr = spaceJson("{\"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}");
  422. document.getElementById('request-body4-0').innerHTML = syntaxHighlight(jsonStr);
  423. } catch (e) {
  424. }
  425. }
  426. </script>
  427. <p><h4> Response Code</h4></p>
  428. <pre class="prettyprint lang-json">200</pre>
  429. <p><h4> Response Headers</h4></p>
  430. <table class="table table-bordered table-striped">
  431. <tr>
  432. <th>Key</th>
  433. <th>Value</th>
  434. </tr>
  435. <tr>
  436. <td>Access-Control-Allow-Credentials</td>
  437. <td> true</td>
  438. </tr>
  439. <tr>
  440. <td>Access-Control-Allow-Headers</td>
  441. <td> Content-Type, Content-Length, Apitoken</td>
  442. </tr>
  443. <tr>
  444. <td>Access-Control-Allow-Methods</td>
  445. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  446. </tr>
  447. <tr>
  448. <td>Access-Control-Allow-Origin</td>
  449. <td> *</td>
  450. </tr>
  451. <tr>
  452. <td>Access-Control-Expose-Headers</td>
  453. <td> Content-Length</td>
  454. </tr>
  455. <tr>
  456. <td>Access-Control-Max-Age</td>
  457. <td> 86400</td>
  458. </tr>
  459. <tr>
  460. <td>Content-Type</td>
  461. <td> application/json; charset=utf-8</td>
  462. </tr>
  463. </table>
  464. <p> <H4> Response Body </H4> </p>
  465. <pre class="prettyprint" id="response-body-4-0">{&#34;message&#34;:&#34;action is created and bind to template: 225&#34;}</pre>
  466. <script>
  467. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  468. if (responseHeader["Content-Type"] === "application/json"){
  469. try {
  470. var jsonStr = spaceJson("{\"message\":\"action is created and bind to template: 225\"}");
  471. document.getElementById('response-body-4-0').innerHTML = syntaxHighlight(jsonStr);
  472. } catch (e) {
  473. }
  474. }
  475. </script>
  476. <hr>
  477. </div>
  478. <div id="5top" role="tabpanel" class="tab-pane col-md-10">
  479. <p> <H4> Request Headers </H4> </p>
  480. <table class="table table-bordered table-striped">
  481. <tr>
  482. <th>Key</th>
  483. <th>Value</th>
  484. </tr>
  485. <tr>
  486. <td>Apitoken</td>
  487. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  488. </tr>
  489. <tr>
  490. <td>Content-Type</td>
  491. <td> application/json
  492. </td>
  493. </tr>
  494. <tr>
  495. <td>X-Forwarded-For</td>
  496. <td> 127.0.0.1
  497. </td>
  498. </tr>
  499. </table>
  500. <p> <H4> Request Body </H4> </p>
  501. <pre id="request-body-5-0" class="prettyprint">{&#34;tpl_id&#34;:225,&#34;parent_id&#34;:0,&#34;name&#34;:&#34;AtmpForTesting2&#34;}</pre>
  502. <script>
  503. var requestHeader ={"Apitoken":"{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}","Content-Type":" application/json\r","X-Forwarded-For":" 127.0.0.1\r"};
  504. if (requestHeader["Content-Type"] === "application/json"){
  505. try {
  506. var jsonStr = spaceJson("{\"tpl_id\":225,\"parent_id\":0,\"name\":\"AtmpForTesting2\"}");
  507. document.getElementById('request-body5-0').innerHTML = syntaxHighlight(jsonStr);
  508. } catch (e) {
  509. }
  510. }
  511. </script>
  512. <p><h4> Response Code</h4></p>
  513. <pre class="prettyprint lang-json">200</pre>
  514. <p><h4> Response Headers</h4></p>
  515. <table class="table table-bordered table-striped">
  516. <tr>
  517. <th>Key</th>
  518. <th>Value</th>
  519. </tr>
  520. <tr>
  521. <td>Access-Control-Allow-Credentials</td>
  522. <td> true</td>
  523. </tr>
  524. <tr>
  525. <td>Access-Control-Allow-Headers</td>
  526. <td> Content-Type, Content-Length, Apitoken</td>
  527. </tr>
  528. <tr>
  529. <td>Access-Control-Allow-Methods</td>
  530. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  531. </tr>
  532. <tr>
  533. <td>Access-Control-Allow-Origin</td>
  534. <td> *</td>
  535. </tr>
  536. <tr>
  537. <td>Access-Control-Expose-Headers</td>
  538. <td> Content-Length</td>
  539. </tr>
  540. <tr>
  541. <td>Access-Control-Max-Age</td>
  542. <td> 86400</td>
  543. </tr>
  544. <tr>
  545. <td>Content-Type</td>
  546. <td> application/json; charset=utf-8</td>
  547. </tr>
  548. </table>
  549. <p> <H4> Response Body </H4> </p>
  550. <pre class="prettyprint" id="response-body-5-0">{&#34;message&#34;:&#34;template updated&#34;}</pre>
  551. <script>
  552. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  553. if (responseHeader["Content-Type"] === "application/json"){
  554. try {
  555. var jsonStr = spaceJson("{\"message\":\"template updated\"}");
  556. document.getElementById('response-body-5-0').innerHTML = syntaxHighlight(jsonStr);
  557. } catch (e) {
  558. }
  559. }
  560. </script>
  561. <hr>
  562. </div>
  563. <div id="6top" role="tabpanel" class="tab-pane col-md-10">
  564. <p> <H4> Request Headers </H4> </p>
  565. <table class="table table-bordered table-striped">
  566. <tr>
  567. <th>Key</th>
  568. <th>Value</th>
  569. </tr>
  570. <tr>
  571. <td>Apitoken</td>
  572. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  573. </tr>
  574. <tr>
  575. <td>Content-Type</td>
  576. <td> application/json
  577. </td>
  578. </tr>
  579. <tr>
  580. <td>X-Forwarded-For</td>
  581. <td> 127.0.0.1
  582. </td>
  583. </tr>
  584. </table>
  585. <p> <H4> Request Body </H4> </p>
  586. <pre id="request-body-6-0" class="prettyprint">{&#34;url&#34;:&#34;&#34;,&#34;uic&#34;:&#34;test,tt2,tt3&#34;,&#34;id&#34;:175,&#34;callback&#34;:1,&#34;before_callback_sms&#34;:0,&#34;before_callback_mail&#34;:0,&#34;after_callback_sms&#34;:0,&#34;after_callback_mail&#34;:0}</pre>
  587. <script>
  588. var requestHeader ={"Apitoken":"{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}","Content-Type":" application/json\r","X-Forwarded-For":" 127.0.0.1\r"};
  589. if (requestHeader["Content-Type"] === "application/json"){
  590. try {
  591. var jsonStr = spaceJson("{\"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}");
  592. document.getElementById('request-body6-0').innerHTML = syntaxHighlight(jsonStr);
  593. } catch (e) {
  594. }
  595. }
  596. </script>
  597. <p><h4> Response Code</h4></p>
  598. <pre class="prettyprint lang-json">200</pre>
  599. <p><h4> Response Headers</h4></p>
  600. <table class="table table-bordered table-striped">
  601. <tr>
  602. <th>Key</th>
  603. <th>Value</th>
  604. </tr>
  605. <tr>
  606. <td>Access-Control-Allow-Credentials</td>
  607. <td> true</td>
  608. </tr>
  609. <tr>
  610. <td>Access-Control-Allow-Headers</td>
  611. <td> Content-Type, Content-Length, Apitoken</td>
  612. </tr>
  613. <tr>
  614. <td>Access-Control-Allow-Methods</td>
  615. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  616. </tr>
  617. <tr>
  618. <td>Access-Control-Allow-Origin</td>
  619. <td> *</td>
  620. </tr>
  621. <tr>
  622. <td>Access-Control-Expose-Headers</td>
  623. <td> Content-Length</td>
  624. </tr>
  625. <tr>
  626. <td>Access-Control-Max-Age</td>
  627. <td> 86400</td>
  628. </tr>
  629. <tr>
  630. <td>Content-Type</td>
  631. <td> application/json; charset=utf-8</td>
  632. </tr>
  633. </table>
  634. <p> <H4> Response Body </H4> </p>
  635. <pre class="prettyprint" id="response-body-6-0">{&#34;message&#34;:&#34;action is updated, row affected: 1&#34;}</pre>
  636. <script>
  637. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  638. if (responseHeader["Content-Type"] === "application/json"){
  639. try {
  640. var jsonStr = spaceJson("{\"message\":\"action is updated, row affected: 1\"}");
  641. document.getElementById('response-body-6-0').innerHTML = syntaxHighlight(jsonStr);
  642. } catch (e) {
  643. }
  644. }
  645. </script>
  646. <hr>
  647. </div>
  648. <div id="7top" role="tabpanel" class="tab-pane col-md-10">
  649. <p> <H4> Request Headers </H4> </p>
  650. <table class="table table-bordered table-striped">
  651. <tr>
  652. <th>Key</th>
  653. <th>Value</th>
  654. </tr>
  655. <tr>
  656. <td>Apitoken</td>
  657. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  658. </tr>
  659. <tr>
  660. <td>X-Forwarded-For</td>
  661. <td> 127.0.0.1
  662. </td>
  663. </tr>
  664. </table>
  665. <p><h4> Response Code</h4></p>
  666. <pre class="prettyprint lang-json">200</pre>
  667. <p><h4> Response Headers</h4></p>
  668. <table class="table table-bordered table-striped">
  669. <tr>
  670. <th>Key</th>
  671. <th>Value</th>
  672. </tr>
  673. <tr>
  674. <td>Access-Control-Allow-Credentials</td>
  675. <td> true</td>
  676. </tr>
  677. <tr>
  678. <td>Access-Control-Allow-Headers</td>
  679. <td> Content-Type, Content-Length, Apitoken</td>
  680. </tr>
  681. <tr>
  682. <td>Access-Control-Allow-Methods</td>
  683. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  684. </tr>
  685. <tr>
  686. <td>Access-Control-Allow-Origin</td>
  687. <td> *</td>
  688. </tr>
  689. <tr>
  690. <td>Access-Control-Expose-Headers</td>
  691. <td> Content-Length</td>
  692. </tr>
  693. <tr>
  694. <td>Access-Control-Max-Age</td>
  695. <td> 86400</td>
  696. </tr>
  697. <tr>
  698. <td>Content-Type</td>
  699. <td> application/json; charset=utf-8</td>
  700. </tr>
  701. </table>
  702. <p> <H4> Response Body </H4> </p>
  703. <pre class="prettyprint" id="response-body-7-0">{&#34;message&#34;:&#34;template 225 has been deleted&#34;}</pre>
  704. <script>
  705. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  706. if (responseHeader["Content-Type"] === "application/json"){
  707. try {
  708. var jsonStr = spaceJson("{\"message\":\"template 225 has been deleted\"}");
  709. document.getElementById('response-body-7-0').innerHTML = syntaxHighlight(jsonStr);
  710. } catch (e) {
  711. }
  712. }
  713. </script>
  714. <hr>
  715. </div>
  716. <div id="8top" role="tabpanel" class="tab-pane col-md-10">
  717. <p> <H4> Request Headers </H4> </p>
  718. <table class="table table-bordered table-striped">
  719. <tr>
  720. <th>Key</th>
  721. <th>Value</th>
  722. </tr>
  723. <tr>
  724. <td>Apitoken</td>
  725. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  726. </tr>
  727. <tr>
  728. <td>X-Forwarded-For</td>
  729. <td> 127.0.0.1
  730. </td>
  731. </tr>
  732. </table>
  733. <p> <H4> URL Params </H4> </p>
  734. <table class="table table-bordered table-striped">
  735. <tr>
  736. <th>Key</th>
  737. <th>Value</th>
  738. </tr>
  739. <tr>
  740. <td>tid</td>
  741. <td> 221</td>
  742. </tr>
  743. </table>
  744. <p><h4> Response Code</h4></p>
  745. <pre class="prettyprint lang-json">200</pre>
  746. <p><h4> Response Headers</h4></p>
  747. <table class="table table-bordered table-striped">
  748. <tr>
  749. <th>Key</th>
  750. <th>Value</th>
  751. </tr>
  752. <tr>
  753. <td>Access-Control-Allow-Credentials</td>
  754. <td> true</td>
  755. </tr>
  756. <tr>
  757. <td>Access-Control-Allow-Headers</td>
  758. <td> Content-Type, Content-Length, Apitoken</td>
  759. </tr>
  760. <tr>
  761. <td>Access-Control-Allow-Methods</td>
  762. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  763. </tr>
  764. <tr>
  765. <td>Access-Control-Allow-Origin</td>
  766. <td> *</td>
  767. </tr>
  768. <tr>
  769. <td>Access-Control-Expose-Headers</td>
  770. <td> Content-Length</td>
  771. </tr>
  772. <tr>
  773. <td>Access-Control-Max-Age</td>
  774. <td> 86400</td>
  775. </tr>
  776. <tr>
  777. <td>Content-Type</td>
  778. <td> application/json; charset=utf-8</td>
  779. </tr>
  780. </table>
  781. <p> <H4> Response Body </H4> </p>
  782. <pre class="prettyprint" id="response-body-8-0">[{&#34;id&#34;:893,&#34;metric&#34;:&#34;proc.num&#34;,&#34;tags&#34;:&#34;name=redis-server&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:2,&#34;func&#34;:&#34;all(#2)&#34;,&#34;op&#34;:&#34;\u003c&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;note&#34;:&#34;FWRedis服务异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:894,&#34;metric&#34;:&#34;proc.num&#34;,&#34;tags&#34;:&#34;name=beam.smp&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:2,&#34;func&#34;:&#34;all(#3)&#34;,&#34;op&#34;:&#34;\u003c&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;note&#34;:&#34;FWCM进程状态异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:895,&#34;metric&#34;:&#34;proc.num&#34;,&#34;tags&#34;:&#34;cmdline=fwlog&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:3,&#34;func&#34;:&#34;all(#5)&#34;,&#34;op&#34;:&#34;\u003c&#34;,&#34;right_value&#34;:&#34;2&#34;,&#34;note&#34;:&#34;fwlog服务异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:896,&#34;metric&#34;:&#34;fcd.oldworker.count&#34;,&#34;tags&#34;:&#34;&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:3,&#34;func&#34;:&#34;all(#1)&#34;,&#34;op&#34;:&#34;\u003e&#34;,&#34;right_value&#34;:&#34;10&#34;,&#34;note&#34;:&#34;FastCache Old Worker 数量大于10&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:897,&#34;metric&#34;:&#34;service.logs.jifei&#34;,&#34;tags&#34;:&#34;&#34;,&#34;max_step&#34;:1,&#34;priority&#34;:4,&#34;func&#34;:&#34;all(#3)&#34;,&#34;op&#34;:&#34;\u003e&#34;,&#34;right_value&#34;:&#34;10&#34;,&#34;note&#34;:&#34;fastcache计费日志堆积&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:898,&#34;metric&#34;:&#34;proc.num&#34;,&#34;tags&#34;:&#34;cmdline=syslog&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:4,&#34;func&#34;:&#34;all(#1)&#34;,&#34;op&#34;:&#34;\u003c&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;note&#34;:&#34;syslog/rsyslog服务异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:899,&#34;metric&#34;:&#34;proc.num&#34;,&#34;tags&#34;:&#34;name=fwsa2d&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:2,&#34;func&#34;:&#34;all(#2)&#34;,&#34;op&#34;:&#34;\u003c&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;note&#34;:&#34;FWSA2服务异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:900,&#34;metric&#34;:&#34;redis.log.null&#34;,&#34;tags&#34;:&#34;&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:2,&#34;func&#34;:&#34;all(#3)&#34;,&#34;op&#34;:&#34;!=&#34;,&#34;right_value&#34;:&#34;0&#34;,&#34;note&#34;:&#34;FWRedis同步异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221},{&#34;id&#34;:901,&#34;metric&#34;:&#34;check.fwsa2&#34;,&#34;tags&#34;:&#34;&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:2,&#34;func&#34;:&#34;all(#3)&#34;,&#34;op&#34;:&#34;==&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;note&#34;:&#34;Fwsa2连接MQ异常&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;tpl_id&#34;:221}]</pre>
  783. <script>
  784. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  785. if (responseHeader["Content-Type"] === "application/json"){
  786. try {
  787. var jsonStr = spaceJson("[{\"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}]");
  788. document.getElementById('response-body-8-0').innerHTML = syntaxHighlight(jsonStr);
  789. } catch (e) {
  790. }
  791. }
  792. </script>
  793. <hr>
  794. </div>
  795. <div id="9top" role="tabpanel" class="tab-pane col-md-10">
  796. <p> <H4> Request Headers </H4> </p>
  797. <table class="table table-bordered table-striped">
  798. <tr>
  799. <th>Key</th>
  800. <th>Value</th>
  801. </tr>
  802. <tr>
  803. <td>Apitoken</td>
  804. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  805. </tr>
  806. <tr>
  807. <td>Content-Type</td>
  808. <td> application/json
  809. </td>
  810. </tr>
  811. <tr>
  812. <td>X-Forwarded-For</td>
  813. <td> 127.0.0.1
  814. </td>
  815. </tr>
  816. </table>
  817. <p> <H4> Request Body </H4> </p>
  818. <pre id="request-body-9-0" class="prettyprint">{&#34;tpl_id&#34;:221,&#34;tags&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;24:00&#34;,&#34;run_begin&#34;:&#34;00:00&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;priority&#34;:1,&#34;op&#34;:&#34;==&#34;,&#34;note&#34;:&#34;this is a test&#34;,&#34;metric&#34;:&#34;agent.alive&#34;,&#34;max_step&#34;:3,&#34;func&#34;:&#34;all(#3)&#34;}</pre>
  819. <script>
  820. var requestHeader ={"Apitoken":"{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}","Content-Type":" application/json\r","X-Forwarded-For":" 127.0.0.1\r"};
  821. if (requestHeader["Content-Type"] === "application/json"){
  822. try {
  823. var jsonStr = spaceJson("{\"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)\"}");
  824. document.getElementById('request-body9-0').innerHTML = syntaxHighlight(jsonStr);
  825. } catch (e) {
  826. }
  827. }
  828. </script>
  829. <p><h4> Response Code</h4></p>
  830. <pre class="prettyprint lang-json">200</pre>
  831. <p><h4> Response Headers</h4></p>
  832. <table class="table table-bordered table-striped">
  833. <tr>
  834. <th>Key</th>
  835. <th>Value</th>
  836. </tr>
  837. <tr>
  838. <td>Access-Control-Allow-Credentials</td>
  839. <td> true</td>
  840. </tr>
  841. <tr>
  842. <td>Access-Control-Allow-Headers</td>
  843. <td> Content-Type, Content-Length, Apitoken</td>
  844. </tr>
  845. <tr>
  846. <td>Access-Control-Allow-Methods</td>
  847. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  848. </tr>
  849. <tr>
  850. <td>Access-Control-Allow-Origin</td>
  851. <td> *</td>
  852. </tr>
  853. <tr>
  854. <td>Access-Control-Expose-Headers</td>
  855. <td> Content-Length</td>
  856. </tr>
  857. <tr>
  858. <td>Access-Control-Max-Age</td>
  859. <td> 86400</td>
  860. </tr>
  861. <tr>
  862. <td>Content-Type</td>
  863. <td> application/json; charset=utf-8</td>
  864. </tr>
  865. </table>
  866. <p> <H4> Response Body </H4> </p>
  867. <pre class="prettyprint" id="response-body-9-0">{&#34;message&#34;:&#34;stragtegy created&#34;}</pre>
  868. <script>
  869. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  870. if (responseHeader["Content-Type"] === "application/json"){
  871. try {
  872. var jsonStr = spaceJson("{\"message\":\"stragtegy created\"}");
  873. document.getElementById('response-body-9-0').innerHTML = syntaxHighlight(jsonStr);
  874. } catch (e) {
  875. }
  876. }
  877. </script>
  878. <hr>
  879. </div>
  880. <div id="10top" role="tabpanel" class="tab-pane col-md-10">
  881. <p> <H4> Request Headers </H4> </p>
  882. <table class="table table-bordered table-striped">
  883. <tr>
  884. <th>Key</th>
  885. <th>Value</th>
  886. </tr>
  887. <tr>
  888. <td>Apitoken</td>
  889. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  890. </tr>
  891. <tr>
  892. <td>X-Forwarded-For</td>
  893. <td> 127.0.0.1
  894. </td>
  895. </tr>
  896. </table>
  897. <p><h4> Response Code</h4></p>
  898. <pre class="prettyprint lang-json">200</pre>
  899. <p><h4> Response Headers</h4></p>
  900. <table class="table table-bordered table-striped">
  901. <tr>
  902. <th>Key</th>
  903. <th>Value</th>
  904. </tr>
  905. <tr>
  906. <td>Access-Control-Allow-Credentials</td>
  907. <td> true</td>
  908. </tr>
  909. <tr>
  910. <td>Access-Control-Allow-Headers</td>
  911. <td> Content-Type, Content-Length, Apitoken</td>
  912. </tr>
  913. <tr>
  914. <td>Access-Control-Allow-Methods</td>
  915. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  916. </tr>
  917. <tr>
  918. <td>Access-Control-Allow-Origin</td>
  919. <td> *</td>
  920. </tr>
  921. <tr>
  922. <td>Access-Control-Expose-Headers</td>
  923. <td> Content-Length</td>
  924. </tr>
  925. <tr>
  926. <td>Access-Control-Max-Age</td>
  927. <td> 86400</td>
  928. </tr>
  929. <tr>
  930. <td>Content-Type</td>
  931. <td> application/json; charset=utf-8</td>
  932. </tr>
  933. </table>
  934. <p> <H4> Response Body </H4> </p>
  935. <pre class="prettyprint" id="response-body-10-0">{&#34;id&#34;:904,&#34;metric&#34;:&#34;agent.alive&#34;,&#34;tags&#34;:&#34;&#34;,&#34;max_step&#34;:3,&#34;priority&#34;:1,&#34;func&#34;:&#34;all(#3)&#34;,&#34;op&#34;:&#34;==&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;note&#34;:&#34;this is a test&#34;,&#34;run_begin&#34;:&#34;00:00&#34;,&#34;run_end&#34;:&#34;24:00&#34;,&#34;tpl_id&#34;:221}</pre>
  936. <script>
  937. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  938. if (responseHeader["Content-Type"] === "application/json"){
  939. try {
  940. var jsonStr = spaceJson("{\"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}");
  941. document.getElementById('response-body-10-0').innerHTML = syntaxHighlight(jsonStr);
  942. } catch (e) {
  943. }
  944. }
  945. </script>
  946. <hr>
  947. </div>
  948. <div id="11top" role="tabpanel" class="tab-pane col-md-10">
  949. <p> <H4> Request Headers </H4> </p>
  950. <table class="table table-bordered table-striped">
  951. <tr>
  952. <th>Key</th>
  953. <th>Value</th>
  954. </tr>
  955. <tr>
  956. <td>Apitoken</td>
  957. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  958. </tr>
  959. <tr>
  960. <td>Content-Type</td>
  961. <td> application/json
  962. </td>
  963. </tr>
  964. <tr>
  965. <td>X-Forwarded-For</td>
  966. <td> 127.0.0.1
  967. </td>
  968. </tr>
  969. </table>
  970. <p> <H4> Request Body </H4> </p>
  971. <pre id="request-body-11-0" class="prettyprint">{&#34;tags&#34;:&#34;&#34;,&#34;run_end&#34;:&#34;&#34;,&#34;run_begin&#34;:&#34;&#34;,&#34;right_value&#34;:&#34;1&#34;,&#34;priority&#34;:2,&#34;op&#34;:&#34;==&#34;,&#34;note&#34;:&#34;this is a test&#34;,&#34;metric&#34;:&#34;agent.alive&#34;,&#34;max_step&#34;:3,&#34;id&#34;:904,&#34;func&#34;:&#34;all(#3)&#34;}</pre>
  972. <script>
  973. var requestHeader ={"Apitoken":"{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}","Content-Type":" application/json\r","X-Forwarded-For":" 127.0.0.1\r"};
  974. if (requestHeader["Content-Type"] === "application/json"){
  975. try {
  976. var jsonStr = spaceJson("{\"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)\"}");
  977. document.getElementById('request-body11-0').innerHTML = syntaxHighlight(jsonStr);
  978. } catch (e) {
  979. }
  980. }
  981. </script>
  982. <p><h4> Response Code</h4></p>
  983. <pre class="prettyprint lang-json">200</pre>
  984. <p><h4> Response Headers</h4></p>
  985. <table class="table table-bordered table-striped">
  986. <tr>
  987. <th>Key</th>
  988. <th>Value</th>
  989. </tr>
  990. <tr>
  991. <td>Access-Control-Allow-Credentials</td>
  992. <td> true</td>
  993. </tr>
  994. <tr>
  995. <td>Access-Control-Allow-Headers</td>
  996. <td> Content-Type, Content-Length, Apitoken</td>
  997. </tr>
  998. <tr>
  999. <td>Access-Control-Allow-Methods</td>
  1000. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1001. </tr>
  1002. <tr>
  1003. <td>Access-Control-Allow-Origin</td>
  1004. <td> *</td>
  1005. </tr>
  1006. <tr>
  1007. <td>Access-Control-Expose-Headers</td>
  1008. <td> Content-Length</td>
  1009. </tr>
  1010. <tr>
  1011. <td>Access-Control-Max-Age</td>
  1012. <td> 86400</td>
  1013. </tr>
  1014. <tr>
  1015. <td>Content-Type</td>
  1016. <td> application/json; charset=utf-8</td>
  1017. </tr>
  1018. </table>
  1019. <p> <H4> Response Body </H4> </p>
  1020. <pre class="prettyprint" id="response-body-11-0">{&#34;message&#34;:&#34;stragtegy:904 has been updated&#34;}</pre>
  1021. <script>
  1022. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  1023. if (responseHeader["Content-Type"] === "application/json"){
  1024. try {
  1025. var jsonStr = spaceJson("{\"message\":\"stragtegy:904 has been updated\"}");
  1026. document.getElementById('response-body-11-0').innerHTML = syntaxHighlight(jsonStr);
  1027. } catch (e) {
  1028. }
  1029. }
  1030. </script>
  1031. <hr>
  1032. </div>
  1033. <div id="12top" role="tabpanel" class="tab-pane col-md-10">
  1034. <p> <H4> Request Headers </H4> </p>
  1035. <table class="table table-bordered table-striped">
  1036. <tr>
  1037. <th>Key</th>
  1038. <th>Value</th>
  1039. </tr>
  1040. <tr>
  1041. <td>Apitoken</td>
  1042. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  1043. </tr>
  1044. <tr>
  1045. <td>X-Forwarded-For</td>
  1046. <td> 127.0.0.1
  1047. </td>
  1048. </tr>
  1049. </table>
  1050. <p><h4> Response Code</h4></p>
  1051. <pre class="prettyprint lang-json">200</pre>
  1052. <p><h4> Response Headers</h4></p>
  1053. <table class="table table-bordered table-striped">
  1054. <tr>
  1055. <th>Key</th>
  1056. <th>Value</th>
  1057. </tr>
  1058. <tr>
  1059. <td>Access-Control-Allow-Credentials</td>
  1060. <td> true</td>
  1061. </tr>
  1062. <tr>
  1063. <td>Access-Control-Allow-Headers</td>
  1064. <td> Content-Type, Content-Length, Apitoken</td>
  1065. </tr>
  1066. <tr>
  1067. <td>Access-Control-Allow-Methods</td>
  1068. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1069. </tr>
  1070. <tr>
  1071. <td>Access-Control-Allow-Origin</td>
  1072. <td> *</td>
  1073. </tr>
  1074. <tr>
  1075. <td>Access-Control-Expose-Headers</td>
  1076. <td> Content-Length</td>
  1077. </tr>
  1078. <tr>
  1079. <td>Access-Control-Max-Age</td>
  1080. <td> 86400</td>
  1081. </tr>
  1082. <tr>
  1083. <td>Content-Type</td>
  1084. <td> application/json; charset=utf-8</td>
  1085. </tr>
  1086. </table>
  1087. <p> <H4> Response Body </H4> </p>
  1088. <pre class="prettyprint" id="response-body-12-0">{&#34;message&#34;:&#34;strategy:904 has been deleted&#34;}</pre>
  1089. <script>
  1090. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  1091. if (responseHeader["Content-Type"] === "application/json"){
  1092. try {
  1093. var jsonStr = spaceJson("{\"message\":\"strategy:904 has been deleted\"}");
  1094. document.getElementById('response-body-12-0').innerHTML = syntaxHighlight(jsonStr);
  1095. } catch (e) {
  1096. }
  1097. }
  1098. </script>
  1099. <hr>
  1100. </div>
  1101. <div id="13top" role="tabpanel" class="tab-pane col-md-10">
  1102. <p> <H4> Request Headers </H4> </p>
  1103. <table class="table table-bordered table-striped">
  1104. <tr>
  1105. <th>Key</th>
  1106. <th>Value</th>
  1107. </tr>
  1108. <tr>
  1109. <td>Apitoken</td>
  1110. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  1111. </tr>
  1112. <tr>
  1113. <td>X-Forwarded-For</td>
  1114. <td> 127.0.0.1
  1115. </td>
  1116. </tr>
  1117. </table>
  1118. <p><h4> Response Code</h4></p>
  1119. <pre class="prettyprint lang-json">200</pre>
  1120. <p><h4> Response Headers</h4></p>
  1121. <table class="table table-bordered table-striped">
  1122. <tr>
  1123. <th>Key</th>
  1124. <th>Value</th>
  1125. </tr>
  1126. <tr>
  1127. <td>Access-Control-Allow-Credentials</td>
  1128. <td> true</td>
  1129. </tr>
  1130. <tr>
  1131. <td>Access-Control-Allow-Headers</td>
  1132. <td> Content-Type, Content-Length, Apitoken</td>
  1133. </tr>
  1134. <tr>
  1135. <td>Access-Control-Allow-Methods</td>
  1136. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1137. </tr>
  1138. <tr>
  1139. <td>Access-Control-Allow-Origin</td>
  1140. <td> *</td>
  1141. </tr>
  1142. <tr>
  1143. <td>Access-Control-Expose-Headers</td>
  1144. <td> Content-Length</td>
  1145. </tr>
  1146. <tr>
  1147. <td>Access-Control-Max-Age</td>
  1148. <td> 86400</td>
  1149. </tr>
  1150. <tr>
  1151. <td>Content-Type</td>
  1152. <td> application/json; charset=utf-8</td>
  1153. </tr>
  1154. </table>
  1155. <p> <H4> Response Body </H4> </p>
  1156. <pre class="prettyprint" id="response-body-13-0">[&#34;cpu.busy&#34;,&#34;cpu.cnt&#34;,&#34;cpu.guest&#34;,&#34;cpu.idle&#34;,&#34;cpu.iowait&#34;,&#34;cpu.irq&#34;,&#34;cpu.nice&#34;,&#34;cpu.softirq&#34;,&#34;cpu.steal&#34;,&#34;cpu.system&#34;,&#34;cpu.user&#34;,&#34;df.bytes.free&#34;,&#34;df.bytes.free.percent&#34;,&#34;df.bytes.total&#34;,&#34;df.bytes.used&#34;,&#34;df.bytes.used.percent&#34;,&#34;df.inodes.free&#34;,&#34;df.inodes.free.percent&#34;,&#34;df.inodes.total&#34;,&#34;df.inodes.used&#34;,&#34;df.inodes.used.percent&#34;,&#34;disk.io.avgqu-sz&#34;,&#34;disk.io.avgrq_sz&#34;,&#34;disk.io.await&#34;,&#34;disk.io.ios_in_progress&#34;,&#34;disk.io.msec_read&#34;,&#34;disk.io.msec_total&#34;,&#34;disk.io.msec_weighted_total&#34;,&#34;disk.io.msec_write&#34;,&#34;disk.io.read_bytes&#34;,&#34;disk.io.read_merged&#34;,&#34;disk.io.read_requests&#34;,&#34;disk.io.read_sectors&#34;,&#34;disk.io.svctm&#34;,&#34;disk.io.util&#34;,&#34;disk.io.write_bytes&#34;,&#34;disk.io.write_merged&#34;,&#34;disk.io.write_requests&#34;,&#34;disk.io.write_sectors&#34;,&#34;kernel.maxfiles&#34;,&#34;kernel.maxproc&#34;,&#34;load.15min&#34;,&#34;load.1min&#34;,&#34;load.5min&#34;,&#34;mem.memfree&#34;,&#34;mem.memfree.percent&#34;,&#34;mem.memtotal&#34;,&#34;mem.memused&#34;,&#34;mem.memused.percent&#34;,&#34;mem.swapfree&#34;,&#34;mem.swapfree.percent&#34;,&#34;mem.swaptotal&#34;,&#34;mem.swapused&#34;,&#34;mem.swapused.percent&#34;,&#34;net.if.in.bytes&#34;,&#34;net.if.in.compressed&#34;,&#34;net.if.in.dropped&#34;,&#34;net.if.in.errors&#34;,&#34;net.if.in.fifo.errs&#34;,&#34;net.if.in.frame.errs&#34;,&#34;net.if.in.multicast&#34;,&#34;net.if.in.packets&#34;,&#34;net.if.out.bytes&#34;,&#34;net.if.out.carrier.errs&#34;,&#34;net.if.out.collisions&#34;,&#34;net.if.out.compressed&#34;,&#34;net.if.out.dropped&#34;,&#34;net.if.out.errors&#34;,&#34;net.if.out.fifo.errs&#34;,&#34;net.if.out.packets&#34;,&#34;net.if.total.bytes&#34;,&#34;net.if.total.dropped&#34;,&#34;net.if.total.errors&#34;,&#34;net.if.total.packets&#34;,&#34;net.port.listen&#34;,&#34;proc.num&#34;,&#34;&#34;]</pre>
  1157. <script>
  1158. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  1159. if (responseHeader["Content-Type"] === "application/json"){
  1160. try {
  1161. var jsonStr = spaceJson("[\"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\",\"\"]");
  1162. document.getElementById('response-body-13-0').innerHTML = syntaxHighlight(jsonStr);
  1163. } catch (e) {
  1164. }
  1165. }
  1166. </script>
  1167. <hr>
  1168. </div>
  1169. <div id="14top" role="tabpanel" class="tab-pane col-md-10">
  1170. <p> <H4> Request Headers </H4> </p>
  1171. <table class="table table-bordered table-striped">
  1172. <tr>
  1173. <th>Key</th>
  1174. <th>Value</th>
  1175. </tr>
  1176. <tr>
  1177. <td>Apitoken</td>
  1178. <td> {&#34;name&#34;:&#34;root&#34;,&#34;sig&#34;:&#34;427d6803b78311e68afd0242ac130006&#34;}</td>
  1179. </tr>
  1180. <tr>
  1181. <td>X-Forwarded-For</td>
  1182. <td> 127.0.0.1
  1183. </td>
  1184. </tr>
  1185. </table>
  1186. <p> <H4> URL Params </H4> </p>
  1187. <table class="table table-bordered table-striped">
  1188. <tr>
  1189. <th>Key</th>
  1190. <th>Value</th>
  1191. </tr>
  1192. <tr>
  1193. <td>q</td>
  1194. <td> a</td>
  1195. </tr>
  1196. </table>
  1197. <p><h4> Response Code</h4></p>
  1198. <pre class="prettyprint lang-json">200</pre>
  1199. <p><h4> Response Headers</h4></p>
  1200. <table class="table table-bordered table-striped">
  1201. <tr>
  1202. <th>Key</th>
  1203. <th>Value</th>
  1204. </tr>
  1205. <tr>
  1206. <td>Access-Control-Allow-Credentials</td>
  1207. <td> true</td>
  1208. </tr>
  1209. <tr>
  1210. <td>Access-Control-Allow-Headers</td>
  1211. <td> Content-Type, Content-Length, Apitoken</td>
  1212. </tr>
  1213. <tr>
  1214. <td>Access-Control-Allow-Methods</td>
  1215. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1216. </tr>
  1217. <tr>
  1218. <td>Access-Control-Allow-Origin</td>
  1219. <td> *</td>
  1220. </tr>
  1221. <tr>
  1222. <td>Access-Control-Expose-Headers</td>
  1223. <td> Content-Length</td>
  1224. </tr>
  1225. <tr>
  1226. <td>Access-Control-Max-Age</td>
  1227. <td> 86400</td>
  1228. </tr>
  1229. <tr>
  1230. <td>Content-Type</td>
  1231. <td> application/json; charset=utf-8</td>
  1232. </tr>
  1233. </table>
  1234. <p> <H4> Response Body </H4> </p>
  1235. <pre class="prettyprint" id="response-body-14-0">[{&#34;id&#34;:63,&#34;tpl_name&#34;:&#34;tplAa&#34;,&#34;parent_id&#34;:0,&#34;action_id&#34;:0,&#34;create_user&#34;:&#34;&#34;},{&#34;id&#34;:53,&#34;tpl_name&#34;:&#34;TplBa&#34;,&#34;parent_id&#34;:0,&#34;action_id&#34;:0,&#34;create_user&#34;:&#34;&#34;},{&#34;id&#34;:220,&#34;tpl_name&#34;:&#34;TplCa&#34;,&#34;parent_id&#34;:0,&#34;action_id&#34;:0,&#34;create_user&#34;:&#34;&#34;},{&#34;id&#34;:42,&#34;tpl_name&#34;:&#34;basic&#34;,&#34;parent_id&#34;:0,&#34;action_id&#34;:0,&#34;create_user&#34;:&#34;&#34;},{&#34;id&#34;:149,&#34;tpl_name&#34;:&#34;TplDa&#34;,&#34;parent_id&#34;:0,&#34;action_id&#34;:0,&#34;create_user&#34;:&#34;&#34;}]</pre>
  1236. <script>
  1237. var responseHeader ={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type, Content-Length, Apitoken","Access-Control-Allow-Methods":"POST, GET, OPTIONS, PUT, DELETE, UPDATE","Access-Control-Allow-Origin":"*","Access-Control-Expose-Headers":"Content-Length","Access-Control-Max-Age":"86400","Content-Type":"application/json; charset=utf-8"};
  1238. if (responseHeader["Content-Type"] === "application/json"){
  1239. try {
  1240. var jsonStr = spaceJson("[{\"id\":63,\"tpl_name\":\"tplAa\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"},{\"id\":53,\"tpl_name\":\"TplBa\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"},{\"id\":220,\"tpl_name\":\"TplCa\",\"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\":\"TplDa\",\"parent_id\":0,\"action_id\":0,\"create_user\":\"\"}]");
  1241. document.getElementById('response-body-14-0').innerHTML = syntaxHighlight(jsonStr);
  1242. } catch (e) {
  1243. }
  1244. }
  1245. </script>
  1246. <hr>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. </div>
  1251. <hr>
  1252. </body>
  1253. </html>