Endpoint
/api/v2/tenants/{tenantId}/services/{serviceId}/availability
Path Parameters
tenantIdstring
serviceIdstring
Query Parameters
startTimestring
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.
endTimestring
endTime indicates the to dateFor example, if 17 Dec 2018 12:00 PM is the end time, then epoch timestamp is 1545048000.
Responses
OK
currentStatestring
degradedTimeListarray
downTimeListarray
Child Parameters
- downTimeList.actStartTs
- downTimeList.endTs
- downTimeList.key
- downTimeList.rca
- downTimeList.schEndTs
- downTimeList.schStartTs
- downTimeList.startTs
- downTimeList.state
noOfDegradedOccurencesinteger
noOfOccurencesinteger
noOfPauseOccurencesinteger
pauseTimeListarray
totalAvailabilitynumber
totalDegradedTimeinteger
totalDowntimeinteger
totalLogListarray
Child Parameters
- totalLogList.actStartTs
- totalLogList.endTs
- totalLogList.key
- totalLogList.rca
- totalLogList.schEndTs
- totalLogList.schStartTs
- totalLogList.startTs
- totalLogList.state
totalPauseTimeinteger
{
"currentState": "down",
"degradedTimeList": [],
"downTimeKey": "1c0d737b-7478-4e78-9b94-b2159e975a12",
"downTimeList": [
{
"actStartTs": 1542805006,
"endTs": 1542957863,
"key": "1c0d737b-7478-4e78-9b94-b2159e975a12",
"rca": false,
"schEndTs": 0,
"schStartTs": 0,
"startTs": 1542805006,
"state": 0
}
],
"noOfDegradedOccurences": 0,
"noOfOccurences": 1,
"noOfPauseOccurences": 0,
"pauseTimeList": [],
"totalAvailability": 61.012133254094365,
"totalDegradedTime": 0,
"totalDowntime": 152857,
"totalLogList": [
{
"actStartTs": 1542805006,
"endTs": 1542957863,
"key": "1c0d737b-7478-4e78-9b94-b2159e975a12",
"rca": false,
"schEndTs": 0,
"schStartTs": 0,
"startTs": 1542805006,
"state": 0
}
],
"totalPauseTime": 0
}