Package com.datadog.api.client.v2.api
Class DowntimesApi
java.lang.Object
com.datadog.api.client.v2.api.DowntimesApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class DowntimesApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getDowntime.static classManage optional parameters to listDowntimes.static classManage optional parameters to listMonitorDowntimes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelDowntime(String downtimeId) Cancel a downtime.cancelDowntimeAsync(String downtimeId) Cancel a downtime.cancelDowntimeWithHttpInfo(String downtimeId) Cancel a downtime.cancelDowntimeWithHttpInfoAsync(String downtimeId) Cancel a downtime.Schedule a downtime.Schedule a downtime.Schedule a downtime.Schedule a downtime.Get the API client.getDowntime(String downtimeId) Get a downtime.getDowntime(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) Get a downtime.getDowntimeAsync(String downtimeId) Get a downtime.getDowntimeAsync(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) Get a downtime.getDowntimeWithHttpInfo(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) Get downtime detail bydowntime_id.getDowntimeWithHttpInfoAsync(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) Get a downtime.Get all downtimes.Get all downtimes.Get all downtimes.Get all downtimes.Get all scheduled downtimes.Get all downtimes.Get all downtimes.Get all downtimes.listMonitorDowntimes(Long monitorId) Get active downtimes for a monitor.listMonitorDowntimes(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.listMonitorDowntimesAsync(Long monitorId) Get active downtimes for a monitor.listMonitorDowntimesAsync(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.listMonitorDowntimesWithHttpInfo(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get all active downtimes for the specified monitor.listMonitorDowntimesWithHttpInfoAsync(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.listMonitorDowntimesWithPagination(Long monitorId) Get active downtimes for a monitor.listMonitorDowntimesWithPagination(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.voidsetApiClient(ApiClient apiClient) Set the API client.updateDowntime(String downtimeId, DowntimeUpdateRequest body) Update a downtime.updateDowntimeAsync(String downtimeId, DowntimeUpdateRequest body) Update a downtime.updateDowntimeWithHttpInfo(String downtimeId, DowntimeUpdateRequest body) Update a downtime bydowntime_id.updateDowntimeWithHttpInfoAsync(String downtimeId, DowntimeUpdateRequest body) Update a downtime.
-
Constructor Details
-
DowntimesApi
public DowntimesApi() -
DowntimesApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
cancelDowntime
Cancel a downtime.- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Throws:
ApiException- if fails to make API call
-
cancelDowntimeAsync
Cancel a downtime.- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Returns:
- CompletableFuture
-
cancelDowntimeWithHttpInfo
Cancel a downtime.Note: Downtimes canceled through the API are no longer active, but are retained for approximately two days before being permanently removed. The downtime may still appear in search results until it is permanently removed.
- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 403 Forbidden - 404 Downtime not found - 429 Too many requests -
-
cancelDowntimeWithHttpInfoAsync
Cancel a downtime.- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
createDowntime
Schedule a downtime.See
createDowntimeWithHttpInfo(com.datadog.api.client.v2.model.DowntimeCreateRequest).- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- DowntimeResponse
- Throws:
ApiException- if fails to make API call
-
createDowntimeAsync
Schedule a downtime.See
createDowntimeWithHttpInfoAsync(com.datadog.api.client.v2.model.DowntimeCreateRequest).- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- CompletableFuture<DowntimeResponse>
-
createDowntimeWithHttpInfo
public ApiResponse<DowntimeResponse> createDowntimeWithHttpInfo(DowntimeCreateRequest body) throws ApiException Schedule a downtime.- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- ApiResponse<DowntimeResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createDowntimeWithHttpInfoAsync
public CompletableFuture<ApiResponse<DowntimeResponse>> createDowntimeWithHttpInfoAsync(DowntimeCreateRequest body) Schedule a downtime.See
createDowntimeWithHttpInfo(com.datadog.api.client.v2.model.DowntimeCreateRequest).- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- CompletableFuture<ApiResponse<DowntimeResponse>>
-
getDowntime
Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)- Returns:
- DowntimeResponse
- Throws:
ApiException- if fails to make API call
-
getDowntimeAsync
Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)- Returns:
- CompletableFuture<DowntimeResponse>
-
getDowntime
public DowntimeResponse getDowntime(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) throws ApiException Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)parameters- Optional parameters for the request.- Returns:
- DowntimeResponse
- Throws:
ApiException- if fails to make API call
-
getDowntimeAsync
public CompletableFuture<DowntimeResponse> getDowntimeAsync(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<DowntimeResponse>
-
getDowntimeWithHttpInfo
public ApiResponse<DowntimeResponse> getDowntimeWithHttpInfo(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) throws ApiException Get downtime detail bydowntime_id.- Parameters:
downtimeId- ID of the downtime to fetch. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<DowntimeResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getDowntimeWithHttpInfoAsync
public CompletableFuture<ApiResponse<DowntimeResponse>> getDowntimeWithHttpInfoAsync(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<DowntimeResponse>>
-
listDowntimes
Get all downtimes.- Returns:
- ListDowntimesResponse
- Throws:
ApiException- if fails to make API call
-
listDowntimesAsync
Get all downtimes.- Returns:
- CompletableFuture<ListDowntimesResponse>
-
listDowntimes
public ListDowntimesResponse listDowntimes(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException Get all downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListDowntimesResponse
- Throws:
ApiException- if fails to make API call
-
listDowntimesAsync
public CompletableFuture<ListDowntimesResponse> listDowntimesAsync(DowntimesApi.ListDowntimesOptionalParameters parameters) Get all downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListDowntimesResponse>
-
listDowntimesWithPagination
Get all downtimes.- Returns:
- PaginationIterable<DowntimeResponseData>
-
listDowntimesWithPagination
public PaginationIterable<DowntimeResponseData> listDowntimesWithPagination(DowntimesApi.ListDowntimesOptionalParameters parameters) Get all downtimes.- Returns:
- ListDowntimesResponse
-
listDowntimesWithHttpInfo
public ApiResponse<ListDowntimesResponse> listDowntimesWithHttpInfo(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException Get all scheduled downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListDowntimesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listDowntimesWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListDowntimesResponse>> listDowntimesWithHttpInfoAsync(DowntimesApi.ListDowntimesOptionalParameters parameters) Get all downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListDowntimesResponse>>
-
listMonitorDowntimes
Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)- Returns:
- MonitorDowntimeMatchResponse
- Throws:
ApiException- if fails to make API call
-
listMonitorDowntimesAsync
Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)- Returns:
- CompletableFuture<MonitorDowntimeMatchResponse>
-
listMonitorDowntimes
public MonitorDowntimeMatchResponse listMonitorDowntimes(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) throws ApiException Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- MonitorDowntimeMatchResponse
- Throws:
ApiException- if fails to make API call
-
listMonitorDowntimesAsync
public CompletableFuture<MonitorDowntimeMatchResponse> listMonitorDowntimesAsync(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<MonitorDowntimeMatchResponse>
-
listMonitorDowntimesWithPagination
public PaginationIterable<MonitorDowntimeMatchResponseData> listMonitorDowntimesWithPagination(Long monitorId) Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)- Returns:
- PaginationIterable<MonitorDowntimeMatchResponseData>
-
listMonitorDowntimesWithPagination
public PaginationIterable<MonitorDowntimeMatchResponseData> listMonitorDowntimesWithPagination(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)- Returns:
- MonitorDowntimeMatchResponse
-
listMonitorDowntimesWithHttpInfo
public ApiResponse<MonitorDowntimeMatchResponse> listMonitorDowntimesWithHttpInfo(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) throws ApiException Get all active downtimes for the specified monitor.- Parameters:
monitorId- The id of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<MonitorDowntimeMatchResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 404 Monitor Not Found error - 429 Too many requests -
-
listMonitorDowntimesWithHttpInfoAsync
public CompletableFuture<ApiResponse<MonitorDowntimeMatchResponse>> listMonitorDowntimesWithHttpInfoAsync(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<MonitorDowntimeMatchResponse>>
-
updateDowntime
public DowntimeResponse updateDowntime(String downtimeId, DowntimeUpdateRequest body) throws ApiException Update a downtime.See
updateDowntimeWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.DowntimeUpdateRequest).- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- DowntimeResponse
- Throws:
ApiException- if fails to make API call
-
updateDowntimeAsync
public CompletableFuture<DowntimeResponse> updateDowntimeAsync(String downtimeId, DowntimeUpdateRequest body) Update a downtime.- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- CompletableFuture<DowntimeResponse>
-
updateDowntimeWithHttpInfo
public ApiResponse<DowntimeResponse> updateDowntimeWithHttpInfo(String downtimeId, DowntimeUpdateRequest body) throws ApiException Update a downtime bydowntime_id.- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- ApiResponse<DowntimeResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Downtime not found - 429 Too many requests -
-
updateDowntimeWithHttpInfoAsync
public CompletableFuture<ApiResponse<DowntimeResponse>> updateDowntimeWithHttpInfoAsync(String downtimeId, DowntimeUpdateRequest body) Update a downtime.See
updateDowntimeWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.DowntimeUpdateRequest).- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- CompletableFuture<ApiResponse<DowntimeResponse>>
-