diff --git a/API.md b/API.md index 13577ba..8d1cd29 100644 --- a/API.md +++ b/API.md @@ -105,3 +105,44 @@ Response: "method": "delete" } ``` + +# Service Response +```json +{ + "id": 8, + "name": "Test Service 0", + "domain": "https://status.coinapp.io", + "expected": "", + "expected_status": 200, + "check_interval": 1, + "type": "http", + "method": "GET", + "post_data": "", + "port": 0, + "timeout": 30, + "order_id": 0, + "created_at": "2018-09-12T09:07:03.045832088-07:00", + "updated_at": "2018-09-12T09:07:03.046114305-07:00", + "online": false, + "latency": 0.031411064, + "24_hours_online": 0, + "avg_response": "", + "status_code": 502, + "last_online": "0001-01-01T00:00:00Z", + "dns_lookup_time": 0.001727175, + "failures": [ + { + "id": 5187, + "issue": "HTTP Status Code 502 did not match 200", + "service_id": 8, + "created_at": "2018-09-12T10:41:46.292277471-07:00" + }, + { + "id": 5188, + "issue": "HTTP Status Code 502 did not match 200", + "service_id": 8, + "created_at": "2018-09-12T10:41:47.337659862-07:00" + } + ] +} +```