alarm.html 121 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894
  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">POST : /api/v1/alarm/eventcases</a></li>
  87. <li role="presentation"><a href="#1top" role="tab" data-toggle="tab">GET : /api/v1/alarm/event_note</a></li>
  88. <li role="presentation"><a href="#2top" role="tab" data-toggle="tab">POST : /api/v1/alarm/event_note</a></li>
  89. <li role="presentation"><a href="#3top" role="tab" data-toggle="tab">GET : /api/v1/alarm/eventcases</a></li>
  90. <li role="presentation"><a href="#4top" role="tab" data-toggle="tab">POST : /api/v1/alarm/events</a></li>
  91. <ul>
  92. </div>
  93. <div class="col-md-8 tab-content">
  94. <div id="0top" role="tabpanel" class="tab-pane col-md-10">
  95. <p> <H4> Request Headers </H4> </p>
  96. <table class="table table-bordered table-striped">
  97. <tr>
  98. <th>Key</th>
  99. <th>Value</th>
  100. </tr>
  101. <tr>
  102. <td>Apitoken</td>
  103. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  104. </tr>
  105. <tr>
  106. <td>Content-Type</td>
  107. <td> application/json </td>
  108. </tr>
  109. </table>
  110. <p> <H4> Request Body </H4> </p>
  111. <pre id="request-body-0-0" class="prettyprint">
  112. {
  113. &#34;startTime&#34;: 1466956800,
  114. &#34;endTime&#34;: 1480521600,
  115. &#34;status&#34;: &#34;PROBLEM&#34;,
  116. &#34;process_status&#34;: &#34;ignored,unresolved&#34;,
  117. &#34;limit&#34;: 10
  118. }</pre>
  119. <script>
  120. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  121. if (requestHeader["Content-Type"] === "application/json"){
  122. try {
  123. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \t\"endTime\": 1480521600,\n\t \t\"status\": \"PROBLEM\",\n\t \t\"process_status\": \"ignored,unresolved\",\n\t \t\"limit\": 10\n\t }");
  124. document.getElementById('request-body0-0').innerHTML = syntaxHighlight(jsonStr);
  125. } catch (e) {
  126. }
  127. }
  128. </script>
  129. <p><h4> Response Code</h4></p>
  130. <pre class="prettyprint lang-json">200</pre>
  131. <p><h4> Response Headers</h4></p>
  132. <table class="table table-bordered table-striped">
  133. <tr>
  134. <th>Key</th>
  135. <th>Value</th>
  136. </tr>
  137. <tr>
  138. <td>Access-Control-Allow-Credentials</td>
  139. <td> true</td>
  140. </tr>
  141. <tr>
  142. <td>Access-Control-Allow-Headers</td>
  143. <td> Content-Type, Content-Length, Apitoken</td>
  144. </tr>
  145. <tr>
  146. <td>Access-Control-Allow-Methods</td>
  147. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  148. </tr>
  149. <tr>
  150. <td>Access-Control-Allow-Origin</td>
  151. <td> *</td>
  152. </tr>
  153. <tr>
  154. <td>Access-Control-Expose-Headers</td>
  155. <td> Content-Length</td>
  156. </tr>
  157. <tr>
  158. <td>Access-Control-Max-Age</td>
  159. <td> 86400</td>
  160. </tr>
  161. <tr>
  162. <td>Content-Type</td>
  163. <td> application/json; charset=utf-8</td>
  164. </tr>
  165. </table>
  166. <p> <H4> Response Body </H4> </p>
  167. <pre class="prettyprint" id="response-body-0-0">[{&#34;id&#34;:&#34;s_46_1ac45122afb893adc02fbd30154ac303&#34;,&#34;endpoint&#34;:&#34;agent4&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;all(#3)&#34;,&#34;cond&#34;:&#34;48.33759590792839 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;PROBLEM&#34;,&#34;timestamp&#34;:&#34;2016-08-01T06:25:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-08-01T06:25:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:46,&#34;template_id&#34;:126,&#34;process_note&#34;:16907,&#34;process_status&#34;:&#34;ignored&#34;},{&#34;id&#34;:&#34;s_50_6438ac68b30e2712fb8f00d894c46e21&#34;,&#34;endpoint&#34;:&#34;agent5&#34;,&#34;metric&#34;:&#34;cpu.idle&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;95.16331658291456 \u003c= 98&#34;,&#34;note&#34;:&#34;cpu空闲值报警&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:3,&#34;status&#34;:&#34;PROBLEM&#34;,&#34;timestamp&#34;:&#34;2016-07-03T16:13:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-07-03T16:13:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:50,&#34;template_id&#34;:53,&#34;process_note&#34;:1181,&#34;process_status&#34;:&#34;ignored&#34;}]</pre>
  168. <script>
  169. 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"};
  170. if (responseHeader["Content-Type"] === "application/json"){
  171. try {
  172. var jsonStr = spaceJson("[{\"id\":\"s_46_1ac45122afb893adc02fbd30154ac303\",\"endpoint\":\"agent4\",\"metric\":\"cpu.iowait\",\"func\":\"all(#3)\",\"cond\":\"48.33759590792839 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"PROBLEM\",\"timestamp\":\"2016-08-01T06:25:00+08:00\",\"update_at\":\"2016-08-01T06:25:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":46,\"template_id\":126,\"process_note\":16907,\"process_status\":\"ignored\"},{\"id\":\"s_50_6438ac68b30e2712fb8f00d894c46e21\",\"endpoint\":\"agent5\",\"metric\":\"cpu.idle\",\"func\":\"avg(#3)\",\"cond\":\"95.16331658291456 \\u003c= 98\",\"note\":\"cpu空闲值报警\",\"step\":1,\"current_step\":1,\"priority\":3,\"status\":\"PROBLEM\",\"timestamp\":\"2016-07-03T16:13:00+08:00\",\"update_at\":\"2016-07-03T16:13:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":50,\"template_id\":53,\"process_note\":1181,\"process_status\":\"ignored\"}]");
  173. document.getElementById('response-body-0-0').innerHTML = syntaxHighlight(jsonStr);
  174. } catch (e) {
  175. }
  176. }
  177. </script>
  178. <hr>
  179. <p> <H4> Request Headers </H4> </p>
  180. <table class="table table-bordered table-striped">
  181. <tr>
  182. <th>Key</th>
  183. <th>Value</th>
  184. </tr>
  185. <tr>
  186. <td>Apitoken</td>
  187. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  188. </tr>
  189. <tr>
  190. <td>Content-Type</td>
  191. <td> application/json </td>
  192. </tr>
  193. </table>
  194. <p> <H4> Request Body </H4> </p>
  195. <pre id="request-body-0-1" class="prettyprint">
  196. {
  197. &#34;startTime&#34;: 1466956800,
  198. &#34;endTime&#34;: 1480521600,
  199. &#34;status&#34;: &#34;PROBLEM,OK&#34;,
  200. &#34;process_status&#34;: &#34;ignored,unresolved&#34;,
  201. &#34;limit&#34;: 10
  202. }</pre>
  203. <script>
  204. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  205. if (requestHeader["Content-Type"] === "application/json"){
  206. try {
  207. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \t\"endTime\": 1480521600,\n\t \t\"status\": \"PROBLEM,OK\",\n\t \t\"process_status\": \"ignored,unresolved\",\n\t \t\"limit\": 10\n\t }");
  208. document.getElementById('request-body0-1').innerHTML = syntaxHighlight(jsonStr);
  209. } catch (e) {
  210. }
  211. }
  212. </script>
  213. <p><h4> Response Code</h4></p>
  214. <pre class="prettyprint lang-json">200</pre>
  215. <p><h4> Response Headers</h4></p>
  216. <table class="table table-bordered table-striped">
  217. <tr>
  218. <th>Key</th>
  219. <th>Value</th>
  220. </tr>
  221. <tr>
  222. <td>Access-Control-Allow-Credentials</td>
  223. <td> true</td>
  224. </tr>
  225. <tr>
  226. <td>Access-Control-Allow-Headers</td>
  227. <td> Content-Type, Content-Length, Apitoken</td>
  228. </tr>
  229. <tr>
  230. <td>Access-Control-Allow-Methods</td>
  231. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  232. </tr>
  233. <tr>
  234. <td>Access-Control-Allow-Origin</td>
  235. <td> *</td>
  236. </tr>
  237. <tr>
  238. <td>Access-Control-Expose-Headers</td>
  239. <td> Content-Length</td>
  240. </tr>
  241. <tr>
  242. <td>Access-Control-Max-Age</td>
  243. <td> 86400</td>
  244. </tr>
  245. <tr>
  246. <td>Content-Type</td>
  247. <td> application/json; charset=utf-8</td>
  248. </tr>
  249. </table>
  250. <p> <H4> Response Body </H4> </p>
  251. <pre class="prettyprint" id="response-body-0-1">[{&#34;id&#34;:&#34;s_322_00c5f5c87a71bd4c686c0a4a0544b719&#34;,&#34;endpoint&#34;:&#34;agent8&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-30T20:10:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-30T20:10:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_322_00a9b9f9f859d8436f9b643ea5a1fb5e&#34;,&#34;endpoint&#34;:&#34;agent6&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-14T22:16:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-14T22:16:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:140,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_322_00ba3072006a8ba863108d4b3f9c1c51&#34;,&#34;endpoint&#34;:&#34;agent7&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0.0695615485072203 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-14T20:43:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-14T20:43:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_322_002e499f3b56420fdea506c887e51799&#34;,&#34;endpoint&#34;:&#34;agent3&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;30.76679150609009 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-07T04:28:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-07T04:28:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_322_00cc81434a0e277b57254a89a839a47b&#34;,&#34;endpoint&#34;:&#34;agent9&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0.041876046901172526 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-10-28T10:37:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-10-28T10:37:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_322_001da6a5f95d83387cdfecc37ac70c24&#34;,&#34;endpoint&#34;:&#34;agent2&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;34.40479690409319 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-10-27T15:37:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-10-27T15:37:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_46_1ac45122afb893adc02fbd30154ac303&#34;,&#34;endpoint&#34;:&#34;agent4&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;all(#3)&#34;,&#34;cond&#34;:&#34;48.33759590792839 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;PROBLEM&#34;,&#34;timestamp&#34;:&#34;2016-08-01T06:25:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-08-01T06:25:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:46,&#34;template_id&#34;:126,&#34;process_note&#34;:16907,&#34;process_status&#34;:&#34;ignored&#34;},{&#34;id&#34;:&#34;s_191_ddd09333257b2e92e1941860ee86ab15&#34;,&#34;endpoint&#34;:&#34;agent1&#34;,&#34;metric&#34;:&#34;cpu.idle&#34;,&#34;func&#34;:&#34;all(#3)&#34;,&#34;cond&#34;:&#34;11.813186813186814 \u003c 10&#34;,&#34;note&#34;:&#34;cpu.idle小于10%&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:3,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-07-06T09:13:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-07-06T09:13:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:191,&#34;template_id&#34;:42,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;},{&#34;id&#34;:&#34;s_50_6438ac68b30e2712fb8f00d894c46e21&#34;,&#34;endpoint&#34;:&#34;agent5&#34;,&#34;metric&#34;:&#34;cpu.idle&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;95.16331658291456 \u003c= 98&#34;,&#34;note&#34;:&#34;cpu空闲值报警&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:3,&#34;status&#34;:&#34;PROBLEM&#34;,&#34;timestamp&#34;:&#34;2016-07-03T16:13:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-07-03T16:13:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:50,&#34;template_id&#34;:53,&#34;process_note&#34;:1181,&#34;process_status&#34;:&#34;ignored&#34;}]</pre>
  252. <script>
  253. 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"};
  254. if (responseHeader["Content-Type"] === "application/json"){
  255. try {
  256. var jsonStr = spaceJson("[{\"id\":\"s_322_00c5f5c87a71bd4c686c0a4a0544b719\",\"endpoint\":\"agent8\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-30T20:10:00+08:00\",\"update_at\":\"2016-11-30T20:10:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_322_00a9b9f9f859d8436f9b643ea5a1fb5e\",\"endpoint\":\"agent6\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-14T22:16:00+08:00\",\"update_at\":\"2016-11-14T22:16:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":140,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_322_00ba3072006a8ba863108d4b3f9c1c51\",\"endpoint\":\"agent7\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0.0695615485072203 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-14T20:43:00+08:00\",\"update_at\":\"2016-11-14T20:43:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_322_002e499f3b56420fdea506c887e51799\",\"endpoint\":\"agent3\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"30.76679150609009 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-07T04:28:00+08:00\",\"update_at\":\"2016-11-07T04:28:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_322_00cc81434a0e277b57254a89a839a47b\",\"endpoint\":\"agent9\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0.041876046901172526 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-10-28T10:37:00+08:00\",\"update_at\":\"2016-10-28T10:37:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_322_001da6a5f95d83387cdfecc37ac70c24\",\"endpoint\":\"agent2\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"34.40479690409319 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-10-27T15:37:00+08:00\",\"update_at\":\"2016-10-27T15:37:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_46_1ac45122afb893adc02fbd30154ac303\",\"endpoint\":\"agent4\",\"metric\":\"cpu.iowait\",\"func\":\"all(#3)\",\"cond\":\"48.33759590792839 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"PROBLEM\",\"timestamp\":\"2016-08-01T06:25:00+08:00\",\"update_at\":\"2016-08-01T06:25:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":46,\"template_id\":126,\"process_note\":16907,\"process_status\":\"ignored\"},{\"id\":\"s_191_ddd09333257b2e92e1941860ee86ab15\",\"endpoint\":\"agent1\",\"metric\":\"cpu.idle\",\"func\":\"all(#3)\",\"cond\":\"11.813186813186814 \\u003c 10\",\"note\":\"cpu.idle小于10%\",\"step\":1,\"current_step\":1,\"priority\":3,\"status\":\"OK\",\"timestamp\":\"2016-07-06T09:13:00+08:00\",\"update_at\":\"2016-07-06T09:13:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":191,\"template_id\":42,\"process_note\":0,\"process_status\":\"unresolved\"},{\"id\":\"s_50_6438ac68b30e2712fb8f00d894c46e21\",\"endpoint\":\"agent5\",\"metric\":\"cpu.idle\",\"func\":\"avg(#3)\",\"cond\":\"95.16331658291456 \\u003c= 98\",\"note\":\"cpu空闲值报警\",\"step\":1,\"current_step\":1,\"priority\":3,\"status\":\"PROBLEM\",\"timestamp\":\"2016-07-03T16:13:00+08:00\",\"update_at\":\"2016-07-03T16:13:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":50,\"template_id\":53,\"process_note\":1181,\"process_status\":\"ignored\"}]");
  257. document.getElementById('response-body-0-1').innerHTML = syntaxHighlight(jsonStr);
  258. } catch (e) {
  259. }
  260. }
  261. </script>
  262. <hr>
  263. <p> <H4> Request Headers </H4> </p>
  264. <table class="table table-bordered table-striped">
  265. <tr>
  266. <th>Key</th>
  267. <th>Value</th>
  268. </tr>
  269. <tr>
  270. <td>Apitoken</td>
  271. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  272. </tr>
  273. <tr>
  274. <td>Content-Type</td>
  275. <td> application/json </td>
  276. </tr>
  277. </table>
  278. <p> <H4> Request Body </H4> </p>
  279. <pre id="request-body-0-2" class="prettyprint">
  280. {
  281. &#34;startTime&#34;: 1466956800,
  282. &#34;endTime&#34;: 1480521600,
  283. &#34;status&#34;: &#34;PROBLEM&#34;,
  284. &#34;process_status&#34;: &#34;unresolved&#34;,
  285. &#34;limit&#34;: 10
  286. }</pre>
  287. <script>
  288. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  289. if (requestHeader["Content-Type"] === "application/json"){
  290. try {
  291. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \"endTime\": 1480521600,\n\t \"status\": \"PROBLEM\",\n\t \"process_status\": \"unresolved\",\n\t \"limit\": 10\n\t }");
  292. document.getElementById('request-body0-2').innerHTML = syntaxHighlight(jsonStr);
  293. } catch (e) {
  294. }
  295. }
  296. </script>
  297. <p><h4> Response Code</h4></p>
  298. <pre class="prettyprint lang-json">200</pre>
  299. <p><h4> Response Headers</h4></p>
  300. <table class="table table-bordered table-striped">
  301. <tr>
  302. <th>Key</th>
  303. <th>Value</th>
  304. </tr>
  305. <tr>
  306. <td>Access-Control-Allow-Credentials</td>
  307. <td> true</td>
  308. </tr>
  309. <tr>
  310. <td>Access-Control-Allow-Headers</td>
  311. <td> Content-Type, Content-Length, Apitoken</td>
  312. </tr>
  313. <tr>
  314. <td>Access-Control-Allow-Methods</td>
  315. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  316. </tr>
  317. <tr>
  318. <td>Access-Control-Allow-Origin</td>
  319. <td> *</td>
  320. </tr>
  321. <tr>
  322. <td>Access-Control-Expose-Headers</td>
  323. <td> Content-Length</td>
  324. </tr>
  325. <tr>
  326. <td>Access-Control-Max-Age</td>
  327. <td> 86400</td>
  328. </tr>
  329. <tr>
  330. <td>Content-Type</td>
  331. <td> application/json; charset=utf-8</td>
  332. </tr>
  333. </table>
  334. <p> <H4> Response Body </H4> </p>
  335. <pre class="prettyprint" id="response-body-0-2">[]</pre>
  336. <script>
  337. 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"};
  338. if (responseHeader["Content-Type"] === "application/json"){
  339. try {
  340. var jsonStr = spaceJson("[]");
  341. document.getElementById('response-body-0-2').innerHTML = syntaxHighlight(jsonStr);
  342. } catch (e) {
  343. }
  344. }
  345. </script>
  346. <hr>
  347. <p> <H4> Request Headers </H4> </p>
  348. <table class="table table-bordered table-striped">
  349. <tr>
  350. <th>Key</th>
  351. <th>Value</th>
  352. </tr>
  353. <tr>
  354. <td>Apitoken</td>
  355. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  356. </tr>
  357. <tr>
  358. <td>Content-Type</td>
  359. <td> application/json </td>
  360. </tr>
  361. </table>
  362. <p> <H4> Request Body </H4> </p>
  363. <pre id="request-body-0-3" class="prettyprint">
  364. {
  365. &#34;startTime&#34;: 1466956800,
  366. &#34;endTime&#34;: 1480521600,
  367. &#34;process_status&#34;: &#34;unresolved&#34;,
  368. &#34;limit&#34;: 1
  369. }</pre>
  370. <script>
  371. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  372. if (requestHeader["Content-Type"] === "application/json"){
  373. try {
  374. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \"endTime\": 1480521600,\n\t \"process_status\": \"unresolved\",\n\t \"limit\": 1\n\t }");
  375. document.getElementById('request-body0-3').innerHTML = syntaxHighlight(jsonStr);
  376. } catch (e) {
  377. }
  378. }
  379. </script>
  380. <p><h4> Response Code</h4></p>
  381. <pre class="prettyprint lang-json">200</pre>
  382. <p><h4> Response Headers</h4></p>
  383. <table class="table table-bordered table-striped">
  384. <tr>
  385. <th>Key</th>
  386. <th>Value</th>
  387. </tr>
  388. <tr>
  389. <td>Access-Control-Allow-Credentials</td>
  390. <td> true</td>
  391. </tr>
  392. <tr>
  393. <td>Access-Control-Allow-Headers</td>
  394. <td> Content-Type, Content-Length, Apitoken</td>
  395. </tr>
  396. <tr>
  397. <td>Access-Control-Allow-Methods</td>
  398. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  399. </tr>
  400. <tr>
  401. <td>Access-Control-Allow-Origin</td>
  402. <td> *</td>
  403. </tr>
  404. <tr>
  405. <td>Access-Control-Expose-Headers</td>
  406. <td> Content-Length</td>
  407. </tr>
  408. <tr>
  409. <td>Access-Control-Max-Age</td>
  410. <td> 86400</td>
  411. </tr>
  412. <tr>
  413. <td>Content-Type</td>
  414. <td> application/json; charset=utf-8</td>
  415. </tr>
  416. </table>
  417. <p> <H4> Response Body </H4> </p>
  418. <pre class="prettyprint" id="response-body-0-3">[{&#34;id&#34;:&#34;s_322_00c5f5c87a71bd4c686c0a4a0544b719&#34;,&#34;endpoint&#34;:&#34;agent8&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-30T20:10:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-30T20:10:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;}]</pre>
  419. <script>
  420. 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"};
  421. if (responseHeader["Content-Type"] === "application/json"){
  422. try {
  423. var jsonStr = spaceJson("[{\"id\":\"s_322_00c5f5c87a71bd4c686c0a4a0544b719\",\"endpoint\":\"agent8\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-30T20:10:00+08:00\",\"update_at\":\"2016-11-30T20:10:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"}]");
  424. document.getElementById('response-body-0-3').innerHTML = syntaxHighlight(jsonStr);
  425. } catch (e) {
  426. }
  427. }
  428. </script>
  429. <hr>
  430. <p> <H4> Request Headers </H4> </p>
  431. <table class="table table-bordered table-striped">
  432. <tr>
  433. <th>Key</th>
  434. <th>Value</th>
  435. </tr>
  436. <tr>
  437. <td>Apitoken</td>
  438. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  439. </tr>
  440. <tr>
  441. <td>Content-Type</td>
  442. <td> application/json </td>
  443. </tr>
  444. </table>
  445. <p> <H4> Request Body </H4> </p>
  446. <pre id="request-body-0-4" class="prettyprint">
  447. {
  448. &#34;startTime&#34;: 1477584000,
  449. &#34;endTime&#34;: 1477670400,
  450. &#34;process_status&#34;: &#34;unresolved&#34;,
  451. &#34;limit&#34;: 10
  452. }</pre>
  453. <script>
  454. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  455. if (requestHeader["Content-Type"] === "application/json"){
  456. try {
  457. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1477584000,\n\t \"endTime\": 1477670400,\n\t \"process_status\": \"unresolved\",\n\t \"limit\": 10\n\t }");
  458. document.getElementById('request-body0-4').innerHTML = syntaxHighlight(jsonStr);
  459. } catch (e) {
  460. }
  461. }
  462. </script>
  463. <p><h4> Response Code</h4></p>
  464. <pre class="prettyprint lang-json">200</pre>
  465. <p><h4> Response Headers</h4></p>
  466. <table class="table table-bordered table-striped">
  467. <tr>
  468. <th>Key</th>
  469. <th>Value</th>
  470. </tr>
  471. <tr>
  472. <td>Access-Control-Allow-Credentials</td>
  473. <td> true</td>
  474. </tr>
  475. <tr>
  476. <td>Access-Control-Allow-Headers</td>
  477. <td> Content-Type, Content-Length, Apitoken</td>
  478. </tr>
  479. <tr>
  480. <td>Access-Control-Allow-Methods</td>
  481. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  482. </tr>
  483. <tr>
  484. <td>Access-Control-Allow-Origin</td>
  485. <td> *</td>
  486. </tr>
  487. <tr>
  488. <td>Access-Control-Expose-Headers</td>
  489. <td> Content-Length</td>
  490. </tr>
  491. <tr>
  492. <td>Access-Control-Max-Age</td>
  493. <td> 86400</td>
  494. </tr>
  495. <tr>
  496. <td>Content-Type</td>
  497. <td> application/json; charset=utf-8</td>
  498. </tr>
  499. </table>
  500. <p> <H4> Response Body </H4> </p>
  501. <pre class="prettyprint" id="response-body-0-4">[{&#34;id&#34;:&#34;s_322_00cc81434a0e277b57254a89a839a47b&#34;,&#34;endpoint&#34;:&#34;agent9&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0.041876046901172526 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-10-28T10:37:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-10-28T10:37:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;}]</pre>
  502. <script>
  503. 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"};
  504. if (responseHeader["Content-Type"] === "application/json"){
  505. try {
  506. var jsonStr = spaceJson("[{\"id\":\"s_322_00cc81434a0e277b57254a89a839a47b\",\"endpoint\":\"agent9\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0.041876046901172526 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-10-28T10:37:00+08:00\",\"update_at\":\"2016-10-28T10:37:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"}]");
  507. document.getElementById('response-body-0-4').innerHTML = syntaxHighlight(jsonStr);
  508. } catch (e) {
  509. }
  510. }
  511. </script>
  512. <hr>
  513. <p> <H4> Request Headers </H4> </p>
  514. <table class="table table-bordered table-striped">
  515. <tr>
  516. <th>Key</th>
  517. <th>Value</th>
  518. </tr>
  519. <tr>
  520. <td>Apitoken</td>
  521. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  522. </tr>
  523. <tr>
  524. <td>Content-Type</td>
  525. <td> application/json </td>
  526. </tr>
  527. </table>
  528. <p> <H4> Request Body </H4> </p>
  529. <pre id="request-body-0-5" class="prettyprint">
  530. {
  531. &#34;startTime&#34;: 1466956800,
  532. &#34;endTime&#34;: 1480521600,
  533. &#34;process_status&#34;: &#34;unresolved&#34;,
  534. &#34;page&#34;: 0,
  535. &#34;limit&#34;: 1
  536. }</pre>
  537. <script>
  538. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  539. if (requestHeader["Content-Type"] === "application/json"){
  540. try {
  541. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \"endTime\": 1480521600,\n\t \"process_status\": \"unresolved\",\n\t\t\t\t\"page\": 0,\n\t \"limit\": 1\n\t }");
  542. document.getElementById('request-body0-5').innerHTML = syntaxHighlight(jsonStr);
  543. } catch (e) {
  544. }
  545. }
  546. </script>
  547. <p><h4> Response Code</h4></p>
  548. <pre class="prettyprint lang-json">200</pre>
  549. <p><h4> Response Headers</h4></p>
  550. <table class="table table-bordered table-striped">
  551. <tr>
  552. <th>Key</th>
  553. <th>Value</th>
  554. </tr>
  555. <tr>
  556. <td>Access-Control-Allow-Credentials</td>
  557. <td> true</td>
  558. </tr>
  559. <tr>
  560. <td>Access-Control-Allow-Headers</td>
  561. <td> Content-Type, Content-Length, Apitoken</td>
  562. </tr>
  563. <tr>
  564. <td>Access-Control-Allow-Methods</td>
  565. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  566. </tr>
  567. <tr>
  568. <td>Access-Control-Allow-Origin</td>
  569. <td> *</td>
  570. </tr>
  571. <tr>
  572. <td>Access-Control-Expose-Headers</td>
  573. <td> Content-Length</td>
  574. </tr>
  575. <tr>
  576. <td>Access-Control-Max-Age</td>
  577. <td> 86400</td>
  578. </tr>
  579. <tr>
  580. <td>Content-Type</td>
  581. <td> application/json; charset=utf-8</td>
  582. </tr>
  583. </table>
  584. <p> <H4> Response Body </H4> </p>
  585. <pre class="prettyprint" id="response-body-0-5">[{&#34;id&#34;:&#34;s_322_00c5f5c87a71bd4c686c0a4a0544b719&#34;,&#34;endpoint&#34;:&#34;agent8&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-30T20:10:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-30T20:10:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:125,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;}]</pre>
  586. <script>
  587. 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"};
  588. if (responseHeader["Content-Type"] === "application/json"){
  589. try {
  590. var jsonStr = spaceJson("[{\"id\":\"s_322_00c5f5c87a71bd4c686c0a4a0544b719\",\"endpoint\":\"agent8\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-30T20:10:00+08:00\",\"update_at\":\"2016-11-30T20:10:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":125,\"process_note\":0,\"process_status\":\"unresolved\"}]");
  591. document.getElementById('response-body-0-5').innerHTML = syntaxHighlight(jsonStr);
  592. } catch (e) {
  593. }
  594. }
  595. </script>
  596. <hr>
  597. <p> <H4> Request Headers </H4> </p>
  598. <table class="table table-bordered table-striped">
  599. <tr>
  600. <th>Key</th>
  601. <th>Value</th>
  602. </tr>
  603. <tr>
  604. <td>Apitoken</td>
  605. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  606. </tr>
  607. <tr>
  608. <td>Content-Type</td>
  609. <td> application/json </td>
  610. </tr>
  611. </table>
  612. <p> <H4> Request Body </H4> </p>
  613. <pre id="request-body-0-6" class="prettyprint">
  614. {
  615. &#34;startTime&#34;: 1466956800,
  616. &#34;endTime&#34;: 1480521600,
  617. &#34;process_status&#34;: &#34;unresolved&#34;,
  618. &#34;page&#34;: 1,
  619. &#34;limit&#34;: 1
  620. }</pre>
  621. <script>
  622. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  623. if (requestHeader["Content-Type"] === "application/json"){
  624. try {
  625. var jsonStr = spaceJson("\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \"endTime\": 1480521600,\n\t \"process_status\": \"unresolved\",\n\t\t\t\t\"page\": 1,\n\t \"limit\": 1\n\t }");
  626. document.getElementById('request-body0-6').innerHTML = syntaxHighlight(jsonStr);
  627. } catch (e) {
  628. }
  629. }
  630. </script>
  631. <p><h4> Response Code</h4></p>
  632. <pre class="prettyprint lang-json">200</pre>
  633. <p><h4> Response Headers</h4></p>
  634. <table class="table table-bordered table-striped">
  635. <tr>
  636. <th>Key</th>
  637. <th>Value</th>
  638. </tr>
  639. <tr>
  640. <td>Access-Control-Allow-Credentials</td>
  641. <td> true</td>
  642. </tr>
  643. <tr>
  644. <td>Access-Control-Allow-Headers</td>
  645. <td> Content-Type, Content-Length, Apitoken</td>
  646. </tr>
  647. <tr>
  648. <td>Access-Control-Allow-Methods</td>
  649. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  650. </tr>
  651. <tr>
  652. <td>Access-Control-Allow-Origin</td>
  653. <td> *</td>
  654. </tr>
  655. <tr>
  656. <td>Access-Control-Expose-Headers</td>
  657. <td> Content-Length</td>
  658. </tr>
  659. <tr>
  660. <td>Access-Control-Max-Age</td>
  661. <td> 86400</td>
  662. </tr>
  663. <tr>
  664. <td>Content-Type</td>
  665. <td> application/json; charset=utf-8</td>
  666. </tr>
  667. </table>
  668. <p> <H4> Response Body </H4> </p>
  669. <pre class="prettyprint" id="response-body-0-6">[{&#34;id&#34;:&#34;s_322_00a9b9f9f859d8436f9b643ea5a1fb5e&#34;,&#34;endpoint&#34;:&#34;agent6&#34;,&#34;metric&#34;:&#34;cpu.iowait&#34;,&#34;func&#34;:&#34;avg(#3)&#34;,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;note&#34;:&#34;CPU I/O wait超过40&#34;,&#34;step&#34;:1,&#34;current_step&#34;:1,&#34;priority&#34;:1,&#34;status&#34;:&#34;OK&#34;,&#34;timestamp&#34;:&#34;2016-11-14T22:16:00&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-11-14T22:16:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:322,&#34;template_id&#34;:140,&#34;process_note&#34;:0,&#34;process_status&#34;:&#34;unresolved&#34;}]</pre>
  670. <script>
  671. 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"};
  672. if (responseHeader["Content-Type"] === "application/json"){
  673. try {
  674. var jsonStr = spaceJson("[{\"id\":\"s_322_00a9b9f9f859d8436f9b643ea5a1fb5e\",\"endpoint\":\"agent6\",\"metric\":\"cpu.iowait\",\"func\":\"avg(#3)\",\"cond\":\"0 \\u003e 40\",\"note\":\"CPU I/O wait超过40\",\"step\":1,\"current_step\":1,\"priority\":1,\"status\":\"OK\",\"timestamp\":\"2016-11-14T22:16:00+08:00\",\"update_at\":\"2016-11-14T22:16:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":322,\"template_id\":140,\"process_note\":0,\"process_status\":\"unresolved\"}]");
  675. document.getElementById('response-body-0-6').innerHTML = syntaxHighlight(jsonStr);
  676. } catch (e) {
  677. }
  678. }
  679. </script>
  680. <hr>
  681. </div>
  682. <div id="1top" role="tabpanel" class="tab-pane col-md-10">
  683. <p> <H4> Request Headers </H4> </p>
  684. <table class="table table-bordered table-striped">
  685. <tr>
  686. <th>Key</th>
  687. <th>Value</th>
  688. </tr>
  689. <tr>
  690. <td>Apitoken</td>
  691. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  692. </tr>
  693. </table>
  694. <p> <H4> URL Params </H4> </p>
  695. <table class="table table-bordered table-striped">
  696. <tr>
  697. <th>Key</th>
  698. <th>Value</th>
  699. </tr>
  700. <tr>
  701. <td>endTime</td>
  702. <td> 1466697600</td>
  703. </tr>
  704. <tr>
  705. <td>startTime</td>
  706. <td> 1466611200</td>
  707. </tr>
  708. </table>
  709. <p><h4> Response Code</h4></p>
  710. <pre class="prettyprint lang-json">200</pre>
  711. <p><h4> Response Headers</h4></p>
  712. <table class="table table-bordered table-striped">
  713. <tr>
  714. <th>Key</th>
  715. <th>Value</th>
  716. </tr>
  717. <tr>
  718. <td>Access-Control-Allow-Credentials</td>
  719. <td> true</td>
  720. </tr>
  721. <tr>
  722. <td>Access-Control-Allow-Headers</td>
  723. <td> Content-Type, Content-Length, Apitoken</td>
  724. </tr>
  725. <tr>
  726. <td>Access-Control-Allow-Methods</td>
  727. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  728. </tr>
  729. <tr>
  730. <td>Access-Control-Allow-Origin</td>
  731. <td> *</td>
  732. </tr>
  733. <tr>
  734. <td>Access-Control-Expose-Headers</td>
  735. <td> Content-Length</td>
  736. </tr>
  737. <tr>
  738. <td>Access-Control-Max-Age</td>
  739. <td> 86400</td>
  740. </tr>
  741. <tr>
  742. <td>Content-Type</td>
  743. <td> application/json; charset=utf-8</td>
  744. </tr>
  745. </table>
  746. <p> <H4> Response Body </H4> </p>
  747. <pre class="prettyprint" id="response-body-1-0">[{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2016-06-23T05:39:09&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_9d223f126e7ecb3477cd6806f1ee9656&#34;,&#34;note&#34;:&#34;Ignored by user&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2016-06-23T05:38:56&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;}]</pre>
  748. <script>
  749. 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"};
  750. if (responseHeader["Content-Type"] === "application/json"){
  751. try {
  752. var jsonStr = spaceJson("[{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2016-06-23T05:39:09+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_9d223f126e7ecb3477cd6806f1ee9656\",\"note\":\"Ignored by user\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2016-06-23T05:38:56+08:00\",\"user\":\"root\"}]");
  753. document.getElementById('response-body-1-0').innerHTML = syntaxHighlight(jsonStr);
  754. } catch (e) {
  755. }
  756. }
  757. </script>
  758. <hr>
  759. <p> <H4> Request Headers </H4> </p>
  760. <table class="table table-bordered table-striped">
  761. <tr>
  762. <th>Key</th>
  763. <th>Value</th>
  764. </tr>
  765. <tr>
  766. <td>Apitoken</td>
  767. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  768. </tr>
  769. </table>
  770. <p> <H4> URL Params </H4> </p>
  771. <table class="table table-bordered table-striped">
  772. <tr>
  773. <th>Key</th>
  774. <th>Value</th>
  775. </tr>
  776. <tr>
  777. <td>event_id</td>
  778. <td> s_165_cef145900bf4e2a4a0db8b85762b9cdb</td>
  779. </tr>
  780. </table>
  781. <p><h4> Response Code</h4></p>
  782. <pre class="prettyprint lang-json">200</pre>
  783. <p><h4> Response Headers</h4></p>
  784. <table class="table table-bordered table-striped">
  785. <tr>
  786. <th>Key</th>
  787. <th>Value</th>
  788. </tr>
  789. <tr>
  790. <td>Access-Control-Allow-Credentials</td>
  791. <td> true</td>
  792. </tr>
  793. <tr>
  794. <td>Access-Control-Allow-Headers</td>
  795. <td> Content-Type, Content-Length, Apitoken</td>
  796. </tr>
  797. <tr>
  798. <td>Access-Control-Allow-Methods</td>
  799. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  800. </tr>
  801. <tr>
  802. <td>Access-Control-Allow-Origin</td>
  803. <td> *</td>
  804. </tr>
  805. <tr>
  806. <td>Access-Control-Expose-Headers</td>
  807. <td> Content-Length</td>
  808. </tr>
  809. <tr>
  810. <td>Access-Control-Max-Age</td>
  811. <td> 86400</td>
  812. </tr>
  813. <tr>
  814. <td>Content-Type</td>
  815. <td> application/json; charset=utf-8</td>
  816. </tr>
  817. </table>
  818. <p> <H4> Response Body </H4> </p>
  819. <pre class="prettyprint" id="response-body-1-1">[{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:50:29&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:50:29&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:50:06&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:50:06&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:48:07&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:48:07&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:47:24&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:47:24&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:45:04&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:45:04&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:43:26&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:43:26&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:42:02&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:42:02&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:41:14&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:41:14&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:41:02&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:41:01&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:39:49&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:39:49&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:37:50&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:37:50&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:36:34&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:36:34&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:33:50&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:33:50&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:32:52&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:32:52&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:18:12&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;a000001&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:18:12&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:34:15&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:34:15&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:30:51&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:30:51&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:30:03&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:30:03&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:30:03&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:30:03&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:29:44&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:29:44&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:20:42&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T20:20:42&#43;08:00&#34;,&#34;user&#34;:&#34;root&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:58:41&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:58:41&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:58:04&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:58:04&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:56:35&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:56:35&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;comment&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:56:25&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;},{&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;note&#34;:&#34;test note&#34;,&#34;case_id&#34;:&#34;&#34;,&#34;status&#34;:&#34;ignored&#34;,&#34;timestamp&#34;:&#34;2017-03-22T18:56:25&#43;08:00&#34;,&#34;user&#34;:&#34;owl&#34;}]</pre>
  820. <script>
  821. 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"};
  822. if (responseHeader["Content-Type"] === "application/json"){
  823. try {
  824. var jsonStr = spaceJson("[{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:50:29+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:50:29+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:50:06+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:50:06+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:48:07+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:48:07+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:47:24+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:47:24+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:45:04+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:45:04+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:43:26+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:43:26+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:42:02+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:42:02+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:41:14+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:41:14+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:41:02+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:41:01+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:39:49+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:39:49+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:37:50+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:37:50+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:36:34+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:36:34+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:33:50+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:33:50+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:32:52+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:32:52+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-23T15:18:12+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"a000001\",\"status\":\"ignored\",\"timestamp\":\"2017-03-23T15:18:12+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T20:34:15+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T20:34:15+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T20:30:51+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T20:30:51+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T20:30:03+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T20:30:03+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T20:30:03+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T20:30:03+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T20:29:44+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T20:29:44+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T20:20:42+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T20:20:42+08:00\",\"user\":\"root\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T18:58:41+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T18:58:41+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T18:58:04+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T18:58:04+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T18:56:35+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T18:56:35+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"comment\",\"timestamp\":\"2017-03-22T18:56:25+08:00\",\"user\":\"owl\"},{\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"note\":\"test note\",\"case_id\":\"\",\"status\":\"ignored\",\"timestamp\":\"2017-03-22T18:56:25+08:00\",\"user\":\"owl\"}]");
  825. document.getElementById('response-body-1-1').innerHTML = syntaxHighlight(jsonStr);
  826. } catch (e) {
  827. }
  828. }
  829. </script>
  830. <hr>
  831. </div>
  832. <div id="2top" role="tabpanel" class="tab-pane col-md-10">
  833. <p> <H4> Request Headers </H4> </p>
  834. <table class="table table-bordered table-striped">
  835. <tr>
  836. <th>Key</th>
  837. <th>Value</th>
  838. </tr>
  839. <tr>
  840. <td>Apitoken</td>
  841. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  842. </tr>
  843. <tr>
  844. <td>Content-Type</td>
  845. <td> application/json </td>
  846. </tr>
  847. </table>
  848. <p> <H4> Request Body </H4> </p>
  849. <pre id="request-body-2-0" class="prettyprint">
  850. {
  851. &#34;event_id&#34;: &#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,
  852. &#34;note&#34;: &#34;test note&#34;,
  853. &#34;status&#34;: &#34;comment&#34;
  854. }</pre>
  855. <script>
  856. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  857. if (requestHeader["Content-Type"] === "application/json"){
  858. try {
  859. var jsonStr = spaceJson("\n\t\t\t{\n\t\t\t\t\"event_id\": \"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\n\t\t\t\t\"note\": \"test note\",\n\t\t\t\t\"status\": \"comment\"\n\t\t\t}");
  860. document.getElementById('request-body2-0').innerHTML = syntaxHighlight(jsonStr);
  861. } catch (e) {
  862. }
  863. }
  864. </script>
  865. <p><h4> Response Code</h4></p>
  866. <pre class="prettyprint lang-json">200</pre>
  867. <p><h4> Response Headers</h4></p>
  868. <table class="table table-bordered table-striped">
  869. <tr>
  870. <th>Key</th>
  871. <th>Value</th>
  872. </tr>
  873. <tr>
  874. <td>Access-Control-Allow-Credentials</td>
  875. <td> true</td>
  876. </tr>
  877. <tr>
  878. <td>Access-Control-Allow-Headers</td>
  879. <td> Content-Type, Content-Length, Apitoken</td>
  880. </tr>
  881. <tr>
  882. <td>Access-Control-Allow-Methods</td>
  883. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  884. </tr>
  885. <tr>
  886. <td>Access-Control-Allow-Origin</td>
  887. <td> *</td>
  888. </tr>
  889. <tr>
  890. <td>Access-Control-Expose-Headers</td>
  891. <td> Content-Length</td>
  892. </tr>
  893. <tr>
  894. <td>Access-Control-Max-Age</td>
  895. <td> 86400</td>
  896. </tr>
  897. <tr>
  898. <td>Content-Type</td>
  899. <td> application/json; charset=utf-8</td>
  900. </tr>
  901. </table>
  902. <p> <H4> Response Body </H4> </p>
  903. <pre class="prettyprint" id="response-body-2-0">{&#34;id&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;message&#34;:&#34;add note to s_165_cef145900bf4e2a4a0db8b85762b9cdb successfuled&#34;}</pre>
  904. <script>
  905. 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"};
  906. if (responseHeader["Content-Type"] === "application/json"){
  907. try {
  908. var jsonStr = spaceJson("{\"id\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"message\":\"add note to s_165_cef145900bf4e2a4a0db8b85762b9cdb successfuled\"}");
  909. document.getElementById('response-body-2-0').innerHTML = syntaxHighlight(jsonStr);
  910. } catch (e) {
  911. }
  912. }
  913. </script>
  914. <hr>
  915. <p> <H4> Request Headers </H4> </p>
  916. <table class="table table-bordered table-striped">
  917. <tr>
  918. <th>Key</th>
  919. <th>Value</th>
  920. </tr>
  921. <tr>
  922. <td>Apitoken</td>
  923. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  924. </tr>
  925. <tr>
  926. <td>Content-Type</td>
  927. <td> application/json </td>
  928. </tr>
  929. </table>
  930. <p> <H4> Request Body </H4> </p>
  931. <pre id="request-body-2-1" class="prettyprint">
  932. {
  933. &#34;event_id&#34;: &#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,
  934. &#34;note&#34;: &#34;test note&#34;,
  935. &#34;status&#34;: &#34;ignored&#34;,
  936. &#34;case_id&#34;: &#34;a000001&#34;
  937. }</pre>
  938. <script>
  939. var requestHeader ={"Apitoken":"{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}","Content-Type":" application/json\r"};
  940. if (requestHeader["Content-Type"] === "application/json"){
  941. try {
  942. var jsonStr = spaceJson("\n\t\t\t{\n\t\t\t\t\"event_id\": \"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\n\t\t\t\t\"note\": \"test note\",\n\t\t\t\t\"status\": \"ignored\",\n\t\t\t\t\"case_id\": \"a000001\"\n\t\t\t}");
  943. document.getElementById('request-body2-1').innerHTML = syntaxHighlight(jsonStr);
  944. } catch (e) {
  945. }
  946. }
  947. </script>
  948. <p><h4> Response Code</h4></p>
  949. <pre class="prettyprint lang-json">200</pre>
  950. <p><h4> Response Headers</h4></p>
  951. <table class="table table-bordered table-striped">
  952. <tr>
  953. <th>Key</th>
  954. <th>Value</th>
  955. </tr>
  956. <tr>
  957. <td>Access-Control-Allow-Credentials</td>
  958. <td> true</td>
  959. </tr>
  960. <tr>
  961. <td>Access-Control-Allow-Headers</td>
  962. <td> Content-Type, Content-Length, Apitoken</td>
  963. </tr>
  964. <tr>
  965. <td>Access-Control-Allow-Methods</td>
  966. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  967. </tr>
  968. <tr>
  969. <td>Access-Control-Allow-Origin</td>
  970. <td> *</td>
  971. </tr>
  972. <tr>
  973. <td>Access-Control-Expose-Headers</td>
  974. <td> Content-Length</td>
  975. </tr>
  976. <tr>
  977. <td>Access-Control-Max-Age</td>
  978. <td> 86400</td>
  979. </tr>
  980. <tr>
  981. <td>Content-Type</td>
  982. <td> application/json; charset=utf-8</td>
  983. </tr>
  984. </table>
  985. <p> <H4> Response Body </H4> </p>
  986. <pre class="prettyprint" id="response-body-2-1">{&#34;id&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;message&#34;:&#34;add note to s_165_cef145900bf4e2a4a0db8b85762b9cdb successfuled&#34;}</pre>
  987. <script>
  988. 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"};
  989. if (responseHeader["Content-Type"] === "application/json"){
  990. try {
  991. var jsonStr = spaceJson("{\"id\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"message\":\"add note to s_165_cef145900bf4e2a4a0db8b85762b9cdb successfuled\"}");
  992. document.getElementById('response-body-2-1').innerHTML = syntaxHighlight(jsonStr);
  993. } catch (e) {
  994. }
  995. }
  996. </script>
  997. <hr>
  998. </div>
  999. <div id="3top" role="tabpanel" class="tab-pane col-md-10">
  1000. <p> <H4> Request Headers </H4> </p>
  1001. <table class="table table-bordered table-striped">
  1002. <tr>
  1003. <th>Key</th>
  1004. <th>Value</th>
  1005. </tr>
  1006. <tr>
  1007. <td>Apitoken</td>
  1008. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  1009. </tr>
  1010. </table>
  1011. <p> <H4> URL Params </H4> </p>
  1012. <table class="table table-bordered table-striped">
  1013. <tr>
  1014. <th>Key</th>
  1015. <th>Value</th>
  1016. </tr>
  1017. <tr>
  1018. <td>event_id</td>
  1019. <td> s_165_cef145900bf4e2a4a0db8b85762b9cdb</td>
  1020. </tr>
  1021. </table>
  1022. <p><h4> Response Code</h4></p>
  1023. <pre class="prettyprint lang-json">200</pre>
  1024. <p><h4> Response Headers</h4></p>
  1025. <table class="table table-bordered table-striped">
  1026. <tr>
  1027. <th>Key</th>
  1028. <th>Value</th>
  1029. </tr>
  1030. <tr>
  1031. <td>Access-Control-Allow-Credentials</td>
  1032. <td> true</td>
  1033. </tr>
  1034. <tr>
  1035. <td>Access-Control-Allow-Headers</td>
  1036. <td> Content-Type, Content-Length, Apitoken</td>
  1037. </tr>
  1038. <tr>
  1039. <td>Access-Control-Allow-Methods</td>
  1040. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1041. </tr>
  1042. <tr>
  1043. <td>Access-Control-Allow-Origin</td>
  1044. <td> *</td>
  1045. </tr>
  1046. <tr>
  1047. <td>Access-Control-Expose-Headers</td>
  1048. <td> Content-Length</td>
  1049. </tr>
  1050. <tr>
  1051. <td>Access-Control-Max-Age</td>
  1052. <td> 86400</td>
  1053. </tr>
  1054. <tr>
  1055. <td>Content-Type</td>
  1056. <td> application/json; charset=utf-8</td>
  1057. </tr>
  1058. </table>
  1059. <p> <H4> Response Body </H4> </p>
  1060. <pre class="prettyprint" id="response-body-3-0">[{&#34;id&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;endpoint&#34;:&#34;agent2&#34;,&#34;metric&#34;:&#34;cpu.idle&#34;,&#34;func&#34;:&#34;all(#1)&#34;,&#34;cond&#34;:&#34;0 != 66&#34;,&#34;note&#34;:&#34;測試告警自動更新&#34;,&#34;step&#34;:300,&#34;current_step&#34;:3,&#34;priority&#34;:0,&#34;status&#34;:&#34;PROBLEM&#34;,&#34;timestamp&#34;:&#34;2017-03-23T15:51:11&#43;08:00&#34;,&#34;update_at&#34;:&#34;2016-06-23T05:00:00&#43;08:00&#34;,&#34;closed_at&#34;:null,&#34;closed_note&#34;:&#34;&#34;,&#34;user_modified&#34;:0,&#34;tpl_creator&#34;:&#34;root&#34;,&#34;expression_id&#34;:0,&#34;strategy_id&#34;:165,&#34;template_id&#34;:45,&#34;process_note&#34;:56603,&#34;process_status&#34;:&#34;ignored&#34;}]</pre>
  1061. <script>
  1062. 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"};
  1063. if (responseHeader["Content-Type"] === "application/json"){
  1064. try {
  1065. var jsonStr = spaceJson("[{\"id\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"endpoint\":\"agent2\",\"metric\":\"cpu.idle\",\"func\":\"all(#1)\",\"cond\":\"0 != 66\",\"note\":\"測試告警自動更新\",\"step\":300,\"current_step\":3,\"priority\":0,\"status\":\"PROBLEM\",\"timestamp\":\"2017-03-23T15:51:11+08:00\",\"update_at\":\"2016-06-23T05:00:00+08:00\",\"closed_at\":null,\"closed_note\":\"\",\"user_modified\":0,\"tpl_creator\":\"root\",\"expression_id\":0,\"strategy_id\":165,\"template_id\":45,\"process_note\":56603,\"process_status\":\"ignored\"}]");
  1066. document.getElementById('response-body-3-0').innerHTML = syntaxHighlight(jsonStr);
  1067. } catch (e) {
  1068. }
  1069. }
  1070. </script>
  1071. <hr>
  1072. </div>
  1073. <div id="4top" role="tabpanel" class="tab-pane col-md-10">
  1074. <p> <H4> Request Headers </H4> </p>
  1075. <table class="table table-bordered table-striped">
  1076. <tr>
  1077. <th>Key</th>
  1078. <th>Value</th>
  1079. </tr>
  1080. <tr>
  1081. <td>Apitoken</td>
  1082. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  1083. </tr>
  1084. <tr>
  1085. <td>Content-Type</td>
  1086. <td> application/x-www-form-urlencoded </td>
  1087. </tr>
  1088. </table>
  1089. <p> <H4> Post Form </H4> </p>
  1090. <table class="table table-bordered table-striped">
  1091. <tr>
  1092. <th>Key</th>
  1093. <th>Value</th>
  1094. </tr>
  1095. <tr>
  1096. <td>endTime</td>
  1097. <td> 1466628960</td>
  1098. </tr>
  1099. <tr>
  1100. <td>event_id</td>
  1101. <td> s_165_cef145900bf4e2a4a0db8b85762b9cdb</td>
  1102. </tr>
  1103. <tr>
  1104. <td>startTime</td>
  1105. <td> 1466611200</td>
  1106. </tr>
  1107. </table>
  1108. <p><h4> Response Code</h4></p>
  1109. <pre class="prettyprint lang-json">200</pre>
  1110. <p><h4> Response Headers</h4></p>
  1111. <table class="table table-bordered table-striped">
  1112. <tr>
  1113. <th>Key</th>
  1114. <th>Value</th>
  1115. </tr>
  1116. <tr>
  1117. <td>Access-Control-Allow-Credentials</td>
  1118. <td> true</td>
  1119. </tr>
  1120. <tr>
  1121. <td>Access-Control-Allow-Headers</td>
  1122. <td> Content-Type, Content-Length, Apitoken</td>
  1123. </tr>
  1124. <tr>
  1125. <td>Access-Control-Allow-Methods</td>
  1126. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1127. </tr>
  1128. <tr>
  1129. <td>Access-Control-Allow-Origin</td>
  1130. <td> *</td>
  1131. </tr>
  1132. <tr>
  1133. <td>Access-Control-Expose-Headers</td>
  1134. <td> Content-Length</td>
  1135. </tr>
  1136. <tr>
  1137. <td>Access-Control-Max-Age</td>
  1138. <td> 86400</td>
  1139. </tr>
  1140. <tr>
  1141. <td>Content-Type</td>
  1142. <td> application/json; charset=utf-8</td>
  1143. </tr>
  1144. </table>
  1145. <p> <H4> Response Body </H4> </p>
  1146. <pre class="prettyprint" id="response-body-4-0">[{&#34;id&#34;:635166,&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;step&#34;:0,&#34;cond&#34;:&#34;10.649350649350648 != 66&#34;,&#34;status&#34;:0,&#34;timestamp&#34;:&#34;2016-06-23T04:55:00&#43;08:00&#34;},{&#34;id&#34;:635149,&#34;event_caseId&#34;:&#34;s_165_cef145900bf4e2a4a0db8b85762b9cdb&#34;,&#34;step&#34;:0,&#34;cond&#34;:&#34;13.486005089058525 != 66&#34;,&#34;status&#34;:0,&#34;timestamp&#34;:&#34;2016-06-23T04:50:00&#43;08:00&#34;}]</pre>
  1147. <script>
  1148. 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"};
  1149. if (responseHeader["Content-Type"] === "application/json"){
  1150. try {
  1151. var jsonStr = spaceJson("[{\"id\":635166,\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"step\":0,\"cond\":\"10.649350649350648 != 66\",\"status\":0,\"timestamp\":\"2016-06-23T04:55:00+08:00\"},{\"id\":635149,\"event_caseId\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"step\":0,\"cond\":\"13.486005089058525 != 66\",\"status\":0,\"timestamp\":\"2016-06-23T04:50:00+08:00\"}]");
  1152. document.getElementById('response-body-4-0').innerHTML = syntaxHighlight(jsonStr);
  1153. } catch (e) {
  1154. }
  1155. }
  1156. </script>
  1157. <hr>
  1158. <p> <H4> Request Headers </H4> </p>
  1159. <table class="table table-bordered table-striped">
  1160. <tr>
  1161. <th>Key</th>
  1162. <th>Value</th>
  1163. </tr>
  1164. <tr>
  1165. <td>Apitoken</td>
  1166. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  1167. </tr>
  1168. <tr>
  1169. <td>Content-Type</td>
  1170. <td> application/x-www-form-urlencoded </td>
  1171. </tr>
  1172. </table>
  1173. <p> <H4> Post Form </H4> </p>
  1174. <table class="table table-bordered table-striped">
  1175. <tr>
  1176. <th>Key</th>
  1177. <th>Value</th>
  1178. </tr>
  1179. <tr>
  1180. <td>event_id</td>
  1181. <td> s_322_00f5a68989281d30fbbb647194a09230</td>
  1182. </tr>
  1183. <tr>
  1184. <td>limit</td>
  1185. <td> 2</td>
  1186. </tr>
  1187. <tr>
  1188. <td>status</td>
  1189. <td> 1</td>
  1190. </tr>
  1191. </table>
  1192. <p><h4> Response Code</h4></p>
  1193. <pre class="prettyprint lang-json">200</pre>
  1194. <p><h4> Response Headers</h4></p>
  1195. <table class="table table-bordered table-striped">
  1196. <tr>
  1197. <th>Key</th>
  1198. <th>Value</th>
  1199. </tr>
  1200. <tr>
  1201. <td>Access-Control-Allow-Credentials</td>
  1202. <td> true</td>
  1203. </tr>
  1204. <tr>
  1205. <td>Access-Control-Allow-Headers</td>
  1206. <td> Content-Type, Content-Length, Apitoken</td>
  1207. </tr>
  1208. <tr>
  1209. <td>Access-Control-Allow-Methods</td>
  1210. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1211. </tr>
  1212. <tr>
  1213. <td>Access-Control-Allow-Origin</td>
  1214. <td> *</td>
  1215. </tr>
  1216. <tr>
  1217. <td>Access-Control-Expose-Headers</td>
  1218. <td> Content-Length</td>
  1219. </tr>
  1220. <tr>
  1221. <td>Access-Control-Max-Age</td>
  1222. <td> 86400</td>
  1223. </tr>
  1224. <tr>
  1225. <td>Content-Type</td>
  1226. <td> application/json; charset=utf-8</td>
  1227. </tr>
  1228. </table>
  1229. <p> <H4> Response Body </H4> </p>
  1230. <pre class="prettyprint" id="response-body-4-1">[{&#34;id&#34;:2283581,&#34;event_caseId&#34;:&#34;s_322_00f5a68989281d30fbbb647194a09230&#34;,&#34;step&#34;:0,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;status&#34;:1,&#34;timestamp&#34;:&#34;2016-12-08T02:10:00&#43;08:00&#34;},{&#34;id&#34;:2229288,&#34;event_caseId&#34;:&#34;s_322_00f5a68989281d30fbbb647194a09230&#34;,&#34;step&#34;:0,&#34;cond&#34;:&#34;0.8756834205893638 \u003e 40&#34;,&#34;status&#34;:1,&#34;timestamp&#34;:&#34;2016-12-02T15:43:00&#43;08:00&#34;}]</pre>
  1231. <script>
  1232. 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"};
  1233. if (responseHeader["Content-Type"] === "application/json"){
  1234. try {
  1235. var jsonStr = spaceJson("[{\"id\":2283581,\"event_caseId\":\"s_322_00f5a68989281d30fbbb647194a09230\",\"step\":0,\"cond\":\"0 \\u003e 40\",\"status\":1,\"timestamp\":\"2016-12-08T02:10:00+08:00\"},{\"id\":2229288,\"event_caseId\":\"s_322_00f5a68989281d30fbbb647194a09230\",\"step\":0,\"cond\":\"0.8756834205893638 \\u003e 40\",\"status\":1,\"timestamp\":\"2016-12-02T15:43:00+08:00\"}]");
  1236. document.getElementById('response-body-4-1').innerHTML = syntaxHighlight(jsonStr);
  1237. } catch (e) {
  1238. }
  1239. }
  1240. </script>
  1241. <hr>
  1242. <p> <H4> Request Headers </H4> </p>
  1243. <table class="table table-bordered table-striped">
  1244. <tr>
  1245. <th>Key</th>
  1246. <th>Value</th>
  1247. </tr>
  1248. <tr>
  1249. <td>Apitoken</td>
  1250. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  1251. </tr>
  1252. <tr>
  1253. <td>Content-Type</td>
  1254. <td> application/x-www-form-urlencoded </td>
  1255. </tr>
  1256. </table>
  1257. <p> <H4> Post Form </H4> </p>
  1258. <table class="table table-bordered table-striped">
  1259. <tr>
  1260. <th>Key</th>
  1261. <th>Value</th>
  1262. </tr>
  1263. <tr>
  1264. <td>event_id</td>
  1265. <td> s_322_00f5a68989281d30fbbb647194a09230</td>
  1266. </tr>
  1267. <tr>
  1268. <td>limit</td>
  1269. <td> 1</td>
  1270. </tr>
  1271. <tr>
  1272. <td>page</td>
  1273. <td> 0</td>
  1274. </tr>
  1275. </table>
  1276. <p><h4> Response Code</h4></p>
  1277. <pre class="prettyprint lang-json">200</pre>
  1278. <p><h4> Response Headers</h4></p>
  1279. <table class="table table-bordered table-striped">
  1280. <tr>
  1281. <th>Key</th>
  1282. <th>Value</th>
  1283. </tr>
  1284. <tr>
  1285. <td>Access-Control-Allow-Credentials</td>
  1286. <td> true</td>
  1287. </tr>
  1288. <tr>
  1289. <td>Access-Control-Allow-Headers</td>
  1290. <td> Content-Type, Content-Length, Apitoken</td>
  1291. </tr>
  1292. <tr>
  1293. <td>Access-Control-Allow-Methods</td>
  1294. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1295. </tr>
  1296. <tr>
  1297. <td>Access-Control-Allow-Origin</td>
  1298. <td> *</td>
  1299. </tr>
  1300. <tr>
  1301. <td>Access-Control-Expose-Headers</td>
  1302. <td> Content-Length</td>
  1303. </tr>
  1304. <tr>
  1305. <td>Access-Control-Max-Age</td>
  1306. <td> 86400</td>
  1307. </tr>
  1308. <tr>
  1309. <td>Content-Type</td>
  1310. <td> application/json; charset=utf-8</td>
  1311. </tr>
  1312. </table>
  1313. <p> <H4> Response Body </H4> </p>
  1314. <pre class="prettyprint" id="response-body-4-2">[{&#34;id&#34;:2283581,&#34;event_caseId&#34;:&#34;s_322_00f5a68989281d30fbbb647194a09230&#34;,&#34;step&#34;:0,&#34;cond&#34;:&#34;0 \u003e 40&#34;,&#34;status&#34;:1,&#34;timestamp&#34;:&#34;2016-12-08T02:10:00&#43;08:00&#34;}]</pre>
  1315. <script>
  1316. 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"};
  1317. if (responseHeader["Content-Type"] === "application/json"){
  1318. try {
  1319. var jsonStr = spaceJson("[{\"id\":2283581,\"event_caseId\":\"s_322_00f5a68989281d30fbbb647194a09230\",\"step\":0,\"cond\":\"0 \\u003e 40\",\"status\":1,\"timestamp\":\"2016-12-08T02:10:00+08:00\"}]");
  1320. document.getElementById('response-body-4-2').innerHTML = syntaxHighlight(jsonStr);
  1321. } catch (e) {
  1322. }
  1323. }
  1324. </script>
  1325. <hr>
  1326. <p> <H4> Request Headers </H4> </p>
  1327. <table class="table table-bordered table-striped">
  1328. <tr>
  1329. <th>Key</th>
  1330. <th>Value</th>
  1331. </tr>
  1332. <tr>
  1333. <td>Apitoken</td>
  1334. <td> {&#34;name&#34;: &#34;root&#34;, &#34;sig&#34;: &#34;233fdb00f99811e68a5c001500c6ca5a&#34;}</td>
  1335. </tr>
  1336. <tr>
  1337. <td>Content-Type</td>
  1338. <td> application/x-www-form-urlencoded </td>
  1339. </tr>
  1340. </table>
  1341. <p> <H4> Post Form </H4> </p>
  1342. <table class="table table-bordered table-striped">
  1343. <tr>
  1344. <th>Key</th>
  1345. <th>Value</th>
  1346. </tr>
  1347. <tr>
  1348. <td>event_id</td>
  1349. <td> s_322_00f5a68989281d30fbbb647194a09230</td>
  1350. </tr>
  1351. <tr>
  1352. <td>limit</td>
  1353. <td> 1</td>
  1354. </tr>
  1355. <tr>
  1356. <td>page</td>
  1357. <td> 1</td>
  1358. </tr>
  1359. </table>
  1360. <p><h4> Response Code</h4></p>
  1361. <pre class="prettyprint lang-json">200</pre>
  1362. <p><h4> Response Headers</h4></p>
  1363. <table class="table table-bordered table-striped">
  1364. <tr>
  1365. <th>Key</th>
  1366. <th>Value</th>
  1367. </tr>
  1368. <tr>
  1369. <td>Access-Control-Allow-Credentials</td>
  1370. <td> true</td>
  1371. </tr>
  1372. <tr>
  1373. <td>Access-Control-Allow-Headers</td>
  1374. <td> Content-Type, Content-Length, Apitoken</td>
  1375. </tr>
  1376. <tr>
  1377. <td>Access-Control-Allow-Methods</td>
  1378. <td> POST, GET, OPTIONS, PUT, DELETE, UPDATE</td>
  1379. </tr>
  1380. <tr>
  1381. <td>Access-Control-Allow-Origin</td>
  1382. <td> *</td>
  1383. </tr>
  1384. <tr>
  1385. <td>Access-Control-Expose-Headers</td>
  1386. <td> Content-Length</td>
  1387. </tr>
  1388. <tr>
  1389. <td>Access-Control-Max-Age</td>
  1390. <td> 86400</td>
  1391. </tr>
  1392. <tr>
  1393. <td>Content-Type</td>
  1394. <td> application/json; charset=utf-8</td>
  1395. </tr>
  1396. </table>
  1397. <p> <H4> Response Body </H4> </p>
  1398. <pre class="prettyprint" id="response-body-4-3">[{&#34;id&#34;:2283566,&#34;event_caseId&#34;:&#34;s_322_00f5a68989281d30fbbb647194a09230&#34;,&#34;step&#34;:0,&#34;cond&#34;:&#34;2.5609807127182493e&#43;17 \u003e 40&#34;,&#34;status&#34;:0,&#34;timestamp&#34;:&#34;2016-12-08T02:07:00&#43;08:00&#34;}]</pre>
  1399. <script>
  1400. 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"};
  1401. if (responseHeader["Content-Type"] === "application/json"){
  1402. try {
  1403. var jsonStr = spaceJson("[{\"id\":2283566,\"event_caseId\":\"s_322_00f5a68989281d30fbbb647194a09230\",\"step\":0,\"cond\":\"2.5609807127182493e+17 \\u003e 40\",\"status\":0,\"timestamp\":\"2016-12-08T02:07:00+08:00\"}]");
  1404. document.getElementById('response-body-4-3').innerHTML = syntaxHighlight(jsonStr);
  1405. } catch (e) {
  1406. }
  1407. }
  1408. </script>
  1409. <hr>
  1410. </div>
  1411. </div>
  1412. </div>
  1413. </div>
  1414. <hr>
  1415. </body>
  1416. </html>