Endpoint
/api/v2/tenants/{tenantId}/resources/{resourceId}/availability
Path Parameters
tenantId
string

Describes the client ID of the tenant

resourceId
string

Query Parameters
startTime
string

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 date. For example, if 17 Dec 2018 12:00 PM is the end time, then epoch timestamp is 1545048000

Responses

OK

currentState
string

degradedTimeList
array

downTimeList
array

downTimeList.actStartTs
downTimeList.endTs
downTimeList.key
downTimeList.rca
downTimeList.schEndTs
downTimeList.schStartTs
downTimeList.startTs
downTimeList.state
noOfDegradedOccurences
integer

noOfOccurences
integer

noOfPauseOccurences
integer

pauseTimeList
array

totalAvailability
number

totalDegradedTime
integer

totalDowntime
integer

totalLogList
array

totalLogList.actStartTs
totalLogList.endTs
totalLogList.key
totalLogList.rca
totalLogList.schEndTs
totalLogList.schStartTs
totalLogList.startTs
totalLogList.state
totalPauseTime
integer

{
  "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
}