Get availability of a given service
Retrieves the availability data of a specified service within a given time range. This allows users to monitor and analyze the service's uptime, downtime and degradedtime over a specific period.
Gets availability information for a specified service over a defined time period.
Query Parameter:
Name | Possible Values | Service Map |
---|---|---|
select | up | Yes |
down | Yes | |
unknown | NA | |
undefined | NA | |
degraded | Yes | |
all * - (Default) | Yes |
Example:
GET api/v3/tenants/{clientId}/services/{serviceId}/availability?startTimestamp={startTimestamp}&endTimestamp={endTimestamp}&select=all,up,down,degraded
Path Parameters
- clientId
- serviceId
Responses
- totalTimeDuration
Total time duration in seconds for which the service has been monitored.
- upTimeDuration
Total duration in seconds for which the service was in an 'up' state.
- downTimeDuration
Total duration in seconds for which the service was in a 'down' state.
- degradedTimeDuration
Total duration in seconds for which the service's state was 'degraded'.
- upPercentage
Percentage of time the service was in the 'up' state.
- downPercentage
Percentage of time the service was in the 'down' state.
- degradedPercentage
Percentage of time the service's state was 'degraded'.
- allLogList
List of all state logs for the service.
- upTimeLogList
List of logs when the service was in the 'up' state.
- downTimeLogList
List of logs when the service was in the 'down' state.
- degradedTimeLogList
List of logs when the service was in the 'degraded' state.