@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DowntimesApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DowntimesApi.GetDowntimeOptionalParameters
Manage optional parameters to getDowntime.
|
static class |
DowntimesApi.ListDowntimesOptionalParameters
Manage optional parameters to listDowntimes.
|
static class |
DowntimesApi.ListMonitorDowntimesOptionalParameters
Manage optional parameters to listMonitorDowntimes.
|
| Constructor and Description |
|---|
DowntimesApi() |
DowntimesApi(ApiClient apiClient) |
public DowntimesApi()
public DowntimesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic void cancelDowntime(String downtimeId) throws ApiException
downtimeId - ID of the downtime to cancel. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> cancelDowntimeAsync(String downtimeId)
downtimeId - ID of the downtime to cancel. (required)public ApiResponse<Void> cancelDowntimeWithHttpInfo(String downtimeId) throws ApiException
downtimeId - ID of the downtime to cancel. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Forbidden | - |
| 404 | Downtime not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> cancelDowntimeWithHttpInfoAsync(String downtimeId)
downtimeId - ID of the downtime to cancel. (required)public DowntimeResponse createDowntime(DowntimeCreateRequest body) throws ApiException
See createDowntimeWithHttpInfo(com.datadog.api.client.v2.model.DowntimeCreateRequest).
body - Schedule a downtime request body. (required)ApiException - if fails to make API callpublic CompletableFuture<DowntimeResponse> createDowntimeAsync(DowntimeCreateRequest body)
See createDowntimeWithHttpInfoAsync(com.datadog.api.client.v2.model.DowntimeCreateRequest).
body - Schedule a downtime request body. (required)public ApiResponse<DowntimeResponse> createDowntimeWithHttpInfo(DowntimeCreateRequest body) throws ApiException
body - Schedule a downtime request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DowntimeResponse>> createDowntimeWithHttpInfoAsync(DowntimeCreateRequest body)
See createDowntimeWithHttpInfo(com.datadog.api.client.v2.model.DowntimeCreateRequest).
body - Schedule a downtime request body. (required)public DowntimeResponse getDowntime(String downtimeId) throws ApiException
downtimeId - ID of the downtime to fetch. (required)ApiException - if fails to make API callpublic CompletableFuture<DowntimeResponse> getDowntimeAsync(String downtimeId)
downtimeId - ID of the downtime to fetch. (required)public DowntimeResponse getDowntime(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) throws ApiException
downtimeId - ID of the downtime to fetch. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<DowntimeResponse> getDowntimeAsync(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters)
downtimeId - ID of the downtime to fetch. (required)parameters - Optional parameters for the request.public ApiResponse<DowntimeResponse> getDowntimeWithHttpInfo(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters) throws ApiException
downtime_id.downtimeId - ID of the downtime to fetch. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DowntimeResponse>> getDowntimeWithHttpInfoAsync(String downtimeId, DowntimesApi.GetDowntimeOptionalParameters parameters)
downtimeId - ID of the downtime to fetch. (required)parameters - Optional parameters for the request.public ListDowntimesResponse listDowntimes() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListDowntimesResponse> listDowntimesAsync()
public ListDowntimesResponse listDowntimes(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListDowntimesResponse> listDowntimesAsync(DowntimesApi.ListDowntimesOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<DowntimeResponseData> listDowntimesWithPagination()
public PaginationIterable<DowntimeResponseData> listDowntimesWithPagination(DowntimesApi.ListDowntimesOptionalParameters parameters)
public ApiResponse<ListDowntimesResponse> listDowntimesWithHttpInfo(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ListDowntimesResponse>> listDowntimesWithHttpInfoAsync(DowntimesApi.ListDowntimesOptionalParameters parameters)
parameters - Optional parameters for the request.public MonitorDowntimeMatchResponse listMonitorDowntimes(Long monitorId) throws ApiException
monitorId - The id of the monitor. (required)ApiException - if fails to make API callpublic CompletableFuture<MonitorDowntimeMatchResponse> listMonitorDowntimesAsync(Long monitorId)
monitorId - The id of the monitor. (required)public MonitorDowntimeMatchResponse listMonitorDowntimes(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) throws ApiException
monitorId - The id of the monitor. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<MonitorDowntimeMatchResponse> listMonitorDowntimesAsync(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters)
monitorId - The id of the monitor. (required)parameters - Optional parameters for the request.public PaginationIterable<MonitorDowntimeMatchResponseData> listMonitorDowntimesWithPagination(Long monitorId)
monitorId - The id of the monitor. (required)public PaginationIterable<MonitorDowntimeMatchResponseData> listMonitorDowntimesWithPagination(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters)
monitorId - The id of the monitor. (required)public ApiResponse<MonitorDowntimeMatchResponse> listMonitorDowntimesWithHttpInfo(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters) throws ApiException
monitorId - The id of the monitor. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 404 | Monitor Not Found error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<MonitorDowntimeMatchResponse>> listMonitorDowntimesWithHttpInfoAsync(Long monitorId, DowntimesApi.ListMonitorDowntimesOptionalParameters parameters)
monitorId - The id of the monitor. (required)parameters - Optional parameters for the request.public DowntimeResponse updateDowntime(String downtimeId, DowntimeUpdateRequest body) throws ApiException
See updateDowntimeWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.DowntimeUpdateRequest).
downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)ApiException - if fails to make API callpublic CompletableFuture<DowntimeResponse> updateDowntimeAsync(String downtimeId, DowntimeUpdateRequest body)
downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)public ApiResponse<DowntimeResponse> updateDowntimeWithHttpInfo(String downtimeId, DowntimeUpdateRequest body) throws ApiException
downtime_id.downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Downtime not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DowntimeResponse>> updateDowntimeWithHttpInfoAsync(String downtimeId, DowntimeUpdateRequest body)
See updateDowntimeWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.DowntimeUpdateRequest).
downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)Copyright © 2024. All rights reserved.