Endpoint
/api/v2/tenants/{tenantId}/resources/{resourceId}/availability
Path Parameters
tenantIdstring
resourceIdstring
Query Parameters
startTimestring
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 date. For 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": [],
"downTimeList": [
{
"actStartTs": 1493622507,
"endTs": 1493622540,
"key": "0443e878-92fb-4401-82b3-97bd961d50e5",
"rca": false,
"schEndTs": 0,
"schStartTs": 0,
"startTs": 1493622507,
"state": 0
},
{
"actStartTs": 1493620027,
"endTs": 1493622450,
"key": "0443e878-92fb-4401-82b3-97bd961d50e5",
"rca": false,
"schEndTs": 0,
"schStartTs": 0,
"startTs": 1493620027,
"state": 0
}
],
"noOfDegradedOccurences": 0,
"noOfOccurences": 2,
"noOfPauseOccurences": 0,
"pauseTimeList": [],
"totalAvailability": 2.2682053322721845,
"totalDegradedTime": 0,
"totalDowntime": 2456,
"totalLogList": [
{
"actStartTs": 1493622507,
"endTs": 1493622540,
"key": "0443e878-92fb-4401-82b3-97bd961d50e5",
"rca": false,
"schEndTs": 0,
"schStartTs": 0,
"startTs": 1493622507,
"state": 0
},
{
"actStartTs": 1493620027,
"endTs": 1493622450,
"key": "0443e878-92fb-4401-82b3-97bd961d50e5",
"rca": false,
"schEndTs": 0,
"schStartTs": 0,
"startTs": 1493620027,
"state": 0
}
],
"totalPauseTime": 0
}