Get availability of a given resource
Retrieves the availability data of a specified resource within a given time range. This allows users to monitor and analyze the resource's uptime, downtime, unknowntime and undefinedtime over a specific period. The API returns detailed availability information such as the total uptime, downtime, and percentage of availability, providing insights into the performance and reliability of the resource.
Gets availability information for a specified resource over a defined time period.
Query Parameter:
Name | Possible Values | Resource |
---|---|---|
select | up | Yes |
down | Yes | |
unknown | Yes | |
undefined | Yes | |
degraded | NA | |
all * - (Default) | Yes |
Example:
GET api/v3/tenants/{clientId}/resources/{resourceId}/availability?startTimestamp={startTimestamp}&endTimestamp={endTimestamp}&select=all,up,down,unknown,undefined
Path Parameters
- resourceId
Resource uuid of the managed resource
- clientId
Describes the clientId of the tenant
Responses
- totalTimeDuration
Total time duration in seconds for which the resource has been monitored.
- upTimeDuration
Total duration in seconds for which the resource was in an 'up' state.
- downTimeDuration
Total duration in seconds for which the resource was in a 'down' state.
- unknownTimeDuration
Total duration in seconds for which the resource's state was 'unknown'.
- undefinedTimeDuration
Total duration in seconds for which the resource's state was 'undefined'.
- unplannedDownTimeDuration
Total duration in seconds for unplanned downtime of the resource.
- upPercentage
Percentage of time the resource was in the 'up' state.
- downPercentage
Percentage of time the resource was in the 'down' state.
- unknownPercentage
Percentage of time the resource's state was 'unknown'.
- undefinedPercentage
Percentage of time the resource's state was 'undefined'.
- allLogList
List of all state logs for the resource.
- upTimeLogList
List of logs when the resource was in the 'up' state.
- downTimeLogList
List of logs when the resource was in the 'down' state.
- unknownTimeLogList
List of logs when the resource was in the 'unknown' state.
- undefinedTimeLogList
List of logs when the resource was in the 'undefined' state.