Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
Content-Type application/json

Request Body

{"username": "xiaoming", "uic": ["plus-dev01", "plus-dev02"], "endpoint": "agent01", "counter": "mem.memused", "priority": ["0", "1"], "start_time": 1535760000, "end_time" :1535767200, "status": "PROBLEM", "now_event_status": false, "limit":10, "offset":0}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200,"Data": [{"event_id": 1000, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6","enpoint": "agent01","counter": "mem.memused","func": "all(#3)","cond": "85.63511855141716 > 80","note": "内存占用过高","mx_step": 10, "current_step": 2, "priority": 1,"status": "PROBLEM ", "event_ts": "2018-09-01T09:20:00+08:00","template_creator": "xiaoming", "expression_id": 0, "strategy_id": 13, "template_id": 2},{"event_id": 955, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6","enpoint": "agent01","counter": "mem.memused","func": "all(#3)","cond": "80.01541888141424 > 80","note": "内存占用过高","mx_step": 10, "current_step": 1, "priority": 1,"status": "PROBLEM ", "event_ts": "2018-09-01T09:15:00+08:00","template_creator": "xiaoming", "expression_id": 0, "strategy_id": 13, "template_id": 2}], "Message": ""}

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
Content-Type application/json

Request Body

{"username":"xiaoming","uic":["plus-dev01", "plus-dev02"],"endpoint":"agent01","counter": "mem.memused","priority":["0","1"],"start_time":1535760000,"end_time":1535767200,"status": "PROBLEM", "now_event_status": false, "have_fault": true, "limit":10, "offset":0}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200,"Data": [{"event_id": 1000, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6","enpoint": "agent01","counter": "mem.memused","func": "all(#3)","cond": "85.63511855141716 > 80","note": "内存占用过高","mx_step": 10, "current_step": 2, "priority": 1,"status": "PROBLEM", "event_ts": "2018-09-01T09:20:00+08:00","template_creator": "xiaoming", "expression_id": 0, "strategy_id": 13, "template_id": 2}, "faults": [{"fault_id":60, "title":"X进程内存占用过高导致job重启", "updated_at":"2018-09-01T09:30:14+08:00"}]}], "Message": ""}

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
Content-Type application/json

Request Body

{"username":"xiaoming","uic":["plus-dev01", "plus-dev02"],"endpoint":"agent01","counter": "mem.memused","priority":["0","1"],"start_time":1535760000,"end_time":1535767200,"status": "PROBLEM", "now_event_status": false, "have_fault": true}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200,"Data": {"count": 100}, "Message": ""}

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
Content-Type application/json

Request Body

{"title":"mipush service down", "note":"test", "owner":"Bob", "tags":["miphone","miui"]}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "miphone", "miui" ], "Events": [], "Followers": [ "root" ], "Comments": [] }, "Message": "fault create succeed"}

URL Parameter

Key Value
start 1542103740
end 1542103740
creator root
tag miui
offset 0
limit 1

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Faults": [ { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "hello test", "Creator": "root", "Owner": "George", "State": "CLOSED", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root", "David", "Jack" ], "Comments": [] } ], "Count": 2 }, "Message": "List fault successfully"}

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "hello test", "Creator": "root", "Owner": "George", "State": "CLOSED", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root", "David", "Jack" ], "Comments": [] }, "Message": "Get fault successfully"}

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{ "Code": 200, "Data": { "FirstEventTime": "2018-11-03T17:44:00+08:00", "LastEventTime": "2018-11-03T17:53:00+08:00", "FaultCreatedAt": "2018-11-12 17:52:56 +0800 CST", "FaultClosedAt": "2018-11-13 15:11:13 +0800 CST" }, "Message": "Get fault timeline successfully" }

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Message": "Get event of fault successfully" }

URL Parameter

Key Value
eventids 1,2,3

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Add event into fault successfully"}

URL Parameter

Key Value
eventids 1

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Delete event from fault successfully"}

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": [ "miphone", "miui" ], "Message": "Get tag of fault successfully"}

URL Parameter

Key Value
tags micloud,mitv

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "micloud", "miphone", "mitv", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Add tag into fault successfully"}

URL Parameter

Key Value
tags mitv

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Delete tag from fault successfully"}

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": [ { "CreatedAt": "2018-11-13T14:14:42+08:00", "Creator": "root", "Comment": "\"test comment\"" } ], "Message": "Get comment of fault successfully"}

URL Parameter

Key Value
comment test comment

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [ { "CreatedAt": "2018-11-13T14:14:42+08:00", "Creator": "root", "Comment": "\"test comment\"" } ] }, "Message": "Add comment successfully"}

URL Parameter

Key Value
comment "test comment"
creator root

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "Bob", "State": "PROCESSING", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Delete comment successfully"}

URL Parameter

Key Value
owner George

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "George", "State": "PROCESSING", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Update owner successfully"}

URL Parameter

Key Value
state CLOSED

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "George", "State": "CLOSED", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root" ], "Comments": [] }, "Message": "Update state successfully"}

URL Parameter

Key Value
action FOLLOW
follower Jack,David

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "test", "Creator": "root", "Owner": "George", "State": "CLOSED", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root", "David", "Jack" ], "Comments": [] }, "Message": "Update follower successfully"}

URL Parameter

Key Value
title mipush service
note hello test

Request Header

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}

Response Status Code

200

Response Headers

Key Value
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

Response Body

{"Code": 200, "Data": { "Id": 93, "CreatedAt": "2018-11-12T17:52:56+08:00", "Title": "mipush service down", "Note": "hello test", "Creator": "root", "Owner": "George", "State": "CLOSED", "Tags": [ "micloud", "miphone", "miui" ], "Events": [ { "event_id": 3, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1625, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:53:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 2, "eventcase_id": "s_11_d206cd6cbaa6b158c6894426e34d7f4e", "endpoint": "c3-op-mon-test01.bj", "counter": "agent.alive", "func": "all(#1)", "cond": "1 == 1", "note": "agent.alive测试", "max_step": 10000, "current_step": 1624, "priority": 0, "status": "PROBLEM", "event_ts": "2018-11-03T17:48:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 11, "template_id": 7 }, { "event_id": 1, "eventcase_id": "s_13_3e251836d0e4992f5fc39d8b65864ee6", "endpoint": "c3-op-mon-test01.bj", "counter": "mem.memfree.percent", "func": "all(#1)", "cond": "92.59889718652626 > 0", "note": "", "max_step": 5000, "current_step": 971, "priority": 3, "status": "PROBLEM", "event_ts": "2018-11-03T17:44:00+08:00", "template_creator": "jingtaoli", "expression_id": 0, "strategy_id": 13, "template_id": 7 } ], "Followers": [ "root", "David", "Jack" ], "Comments": [] }, "Message": "Update fault basic successfully"}