URL
GET https://{api-url}/api/v2/tenants/{tenantId}/services/{serviceId}/availability
Sample URLs
https://{api-url}/api/v2/tenants/client_14/services/SGP-c38c8d3d-a042-431b-9894-3d424f52cf08/availability?startTime=1542565800&endTime=1542957863
Parameters
Both fields are mandatory:
Field | Data Type | Description |
---|---|---|
startTime | String | To view availability of a service within a given time frame, provide the start time and end time. startTime indicates the from date. Convert the time frame to Epoch timestamp. For example, if 12 Dec 2018 10:00 AM is the start time, then epoch timestamp is 1544608800. |
endTime | String | endTime indicates the to dateFor example, if 17 Dec 2018 12:00 PM is the end time, then epoch timestamp is 1545048000. |
{
"totalDowntime": 152857,
"noOfPauseOccurences": 0,
"degradedTimeList": [],
"noOfDegradedOccurences": 0,
"pauseTimeList": [],
"totalPauseTime": 0,
"totalAvailability": 61.012133254094365,
"totalLogList": [{
"key": "1c0d737b-7478-4e78-9b94-b2159e975a12",
"startTs": 1542805006,
"endTs": 1542957863,
"actStartTs": 1542805006,
"state": 0,
"rca": false,
"schStartTs": 0,
"schEndTs": 0
}],
"downTimeList": [{
"key": "1c0d737b-7478-4e78-9b94-b2159e975a12",
"startTs": 1542805006,
"endTs": 1542957863,
"actStartTs": 1542805006,
"state": 0,
"rca": false,
"schStartTs": 0,
"schEndTs": 0
}],
"noOfOccurences": 1,
"downTimeKey": "1c0d737b-7478-4e78-9b94-b2159e975a12",
"totalDegradedTime": 0,
"currentState": "down"
}