Endpoint
/api/v2/tenants/{tenantId}/services/{serviceId}/availability
Path Parameters
tenantId
string

Describes the client ID of the tenant

serviceId
string

Query Parameters
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.

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": [],
  "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
}