123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- {
- "ApiSpecs": [
- {
- "HttpVerb": "POST",
- "Path": "/api/v1/alarm/eventcases",
- "Calls": [
- {
- "Id": 0,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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 }",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 1,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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 }",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 2,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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 }",
- "ResponseBody": "[]",
- "ResponseCode": 200
- },
- {
- "Id": 3,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\n\t\t\t{\n\t \"startTime\": 1466956800,\n\t \"endTime\": 1480521600,\n\t \"process_status\": \"unresolved\",\n\t \"limit\": 1\n\t }",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 4,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\n\t\t\t{\n\t \"startTime\": 1477584000,\n\t \"endTime\": 1477670400,\n\t \"process_status\": \"unresolved\",\n\t \"limit\": 10\n\t }",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 5,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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 }",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 6,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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 }",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "GET",
- "Path": "/api/v1/alarm/event_note",
- "Calls": [
- {
- "Id": 7,
- "CurrentPath": "/api/v1/alarm/event_note",
- "MethodType": "GET",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {
- "endTime": "1466697600",
- "startTime": "1466611200"
- },
- "RequestBody": "",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 8,
- "CurrentPath": "/api/v1/alarm/event_note",
- "MethodType": "GET",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {
- "event_id": "s_165_cef145900bf4e2a4a0db8b85762b9cdb"
- },
- "RequestBody": "",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "POST",
- "Path": "/api/v1/alarm/event_note",
- "Calls": [
- {
- "Id": 9,
- "CurrentPath": "/api/v1/alarm/event_note",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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}",
- "ResponseBody": "{\"id\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"message\":\"add note to s_165_cef145900bf4e2a4a0db8b85762b9cdb successfuled\"}",
- "ResponseCode": 200
- },
- {
- "Id": 10,
- "CurrentPath": "/api/v1/alarm/event_note",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/json\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "\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}",
- "ResponseBody": "{\"id\":\"s_165_cef145900bf4e2a4a0db8b85762b9cdb\",\"message\":\"add note to s_165_cef145900bf4e2a4a0db8b85762b9cdb successfuled\"}",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "GET",
- "Path": "/api/v1/alarm/eventcases",
- "Calls": [
- {
- "Id": 11,
- "CurrentPath": "/api/v1/alarm/eventcases",
- "MethodType": "GET",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {
- "event_id": "s_165_cef145900bf4e2a4a0db8b85762b9cdb"
- },
- "RequestBody": "",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "POST",
- "Path": "/api/v1/alarm/events",
- "Calls": [
- {
- "Id": 12,
- "CurrentPath": "/api/v1/alarm/events",
- "MethodType": "POST",
- "PostForm": {
- "endTime": "1466628960",
- "event_id": "s_165_cef145900bf4e2a4a0db8b85762b9cdb",
- "startTime": "1466611200"
- },
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/x-www-form-urlencoded\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 13,
- "CurrentPath": "/api/v1/alarm/events",
- "MethodType": "POST",
- "PostForm": {
- "event_id": "s_322_00f5a68989281d30fbbb647194a09230",
- "limit": "2",
- "status": "1"
- },
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/x-www-form-urlencoded\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 14,
- "CurrentPath": "/api/v1/alarm/events",
- "MethodType": "POST",
- "PostForm": {
- "event_id": "s_322_00f5a68989281d30fbbb647194a09230",
- "limit": "1",
- "page": "0"
- },
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/x-www-form-urlencoded\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "[{\"id\":2283581,\"event_caseId\":\"s_322_00f5a68989281d30fbbb647194a09230\",\"step\":0,\"cond\":\"0 \\u003e 40\",\"status\":1,\"timestamp\":\"2016-12-08T02:10:00+08:00\"}]",
- "ResponseCode": 200
- },
- {
- "Id": 15,
- "CurrentPath": "/api/v1/alarm/events",
- "MethodType": "POST",
- "PostForm": {
- "event_id": "s_322_00f5a68989281d30fbbb647194a09230",
- "limit": "1",
- "page": "1"
- },
- "RequestHeader": {
- "Apitoken": "{\"name\": \"root\", \"sig\": \"233fdb00f99811e68a5c001500c6ca5a\"}",
- "Content-Type": " application/x-www-form-urlencoded\r"
- },
- "CommonRequestHeaders": null,
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "[{\"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\"}]",
- "ResponseCode": 200
- }
- ]
- }
- ]
- }
|