@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.ListDowntimesOptionalParameters
Manage optional parameters to listDowntimes.
|
| 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 client@Deprecated public void cancelDowntime(Long downtimeId) throws ApiException
downtimeId - ID of the downtime to cancel. (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<Void> cancelDowntimeAsync(Long downtimeId)
downtimeId - ID of the downtime to cancel. (required)@Deprecated public ApiResponse<Void> cancelDowntimeWithHttpInfo(Long 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 | - |
@Deprecated public CompletableFuture<ApiResponse<Void>> cancelDowntimeWithHttpInfoAsync(Long downtimeId)
downtimeId - ID of the downtime to cancel. (required)@Deprecated public CanceledDowntimesIds cancelDowntimesByScope(CancelDowntimesByScopeRequest body) throws ApiException
See cancelDowntimesByScopeWithHttpInfo(com.datadog.api.client.v1.model.CancelDowntimesByScopeRequest).
body - Scope to cancel downtimes for. (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<CanceledDowntimesIds> cancelDowntimesByScopeAsync(CancelDowntimesByScopeRequest body)
body - Scope to cancel downtimes for. (required)@Deprecated public ApiResponse<CanceledDowntimesIds> cancelDowntimesByScopeWithHttpInfo(CancelDowntimesByScopeRequest body) throws ApiException
X. Note: This only
interacts with Downtimes created using v1 endpoints. This endpoint has been deprecated and will
not be replaced. Please use v2 endpoints to find and cancel downtimes.body - Scope to cancel downtimes for. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Downtimes not found | - |
| 429 | Too many requests | - |
@Deprecated public CompletableFuture<ApiResponse<CanceledDowntimesIds>> cancelDowntimesByScopeWithHttpInfoAsync(CancelDowntimesByScopeRequest body)
See cancelDowntimesByScopeWithHttpInfo(com.datadog.api.client.v1.model.CancelDowntimesByScopeRequest).
body - Scope to cancel downtimes for. (required)@Deprecated public Downtime createDowntime(Downtime body) throws ApiException
See createDowntimeWithHttpInfo(com.datadog.api.client.v1.model.Downtime).
body - Schedule a downtime request body. (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<Downtime> createDowntimeAsync(Downtime body)
See createDowntimeWithHttpInfoAsync(com.datadog.api.client.v1.model.Downtime).
body - Schedule a downtime request body. (required)@Deprecated public ApiResponse<Downtime> createDowntimeWithHttpInfo(Downtime 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 | - |
@Deprecated public CompletableFuture<ApiResponse<Downtime>> createDowntimeWithHttpInfoAsync(Downtime body)
See createDowntimeWithHttpInfo(com.datadog.api.client.v1.model.Downtime).
body - Schedule a downtime request body. (required)@Deprecated public Downtime getDowntime(Long downtimeId) throws ApiException
downtimeId - ID of the downtime to fetch. (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<Downtime> getDowntimeAsync(Long downtimeId)
downtimeId - ID of the downtime to fetch. (required)@Deprecated public ApiResponse<Downtime> getDowntimeWithHttpInfo(Long downtimeId) throws ApiException
downtime_id. Note: This endpoint has been
deprecated. Please use v2 endpoints.downtimeId - ID of the downtime to fetch. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Downtime not found | - |
| 429 | Too many requests | - |
@Deprecated public CompletableFuture<ApiResponse<Downtime>> getDowntimeWithHttpInfoAsync(Long downtimeId)
downtimeId - ID of the downtime to fetch. (required)@Deprecated public List<Downtime> listDowntimes() throws ApiException
ApiException - if fails to make API call@Deprecated public CompletableFuture<List<Downtime>> listDowntimesAsync()
@Deprecated public List<Downtime> listDowntimes(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call@Deprecated public CompletableFuture<List<Downtime>> listDowntimesAsync(DowntimesApi.ListDowntimesOptionalParameters parameters)
parameters - Optional parameters for the request.@Deprecated public ApiResponse<List<Downtime>> 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 | - |
@Deprecated public CompletableFuture<ApiResponse<List<Downtime>>> listDowntimesWithHttpInfoAsync(DowntimesApi.ListDowntimesOptionalParameters parameters)
parameters - Optional parameters for the request.@Deprecated public List<Downtime> listMonitorDowntimes(Long monitorId) throws ApiException
monitorId - The id of the monitor (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<List<Downtime>> listMonitorDowntimesAsync(Long monitorId)
monitorId - The id of the monitor (required)@Deprecated public ApiResponse<List<Downtime>> listMonitorDowntimesWithHttpInfo(Long monitorId) throws ApiException
monitorId - The id of the monitor (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 404 | Monitor Not Found error | - |
| 429 | Too many requests | - |
@Deprecated public CompletableFuture<ApiResponse<List<Downtime>>> listMonitorDowntimesWithHttpInfoAsync(Long monitorId)
monitorId - The id of the monitor (required)@Deprecated public Downtime updateDowntime(Long downtimeId, Downtime body) throws ApiException
See updateDowntimeWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.Downtime).
downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<Downtime> updateDowntimeAsync(Long downtimeId, Downtime body)
See updateDowntimeWithHttpInfoAsync(java.lang.Long, com.datadog.api.client.v1.model.Downtime).
downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)@Deprecated public ApiResponse<Downtime> updateDowntimeWithHttpInfo(Long downtimeId, Downtime body) throws ApiException
downtime_id. Note: This endpoint has
been deprecated. Please use v2 endpoints.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 | - |
@Deprecated public CompletableFuture<ApiResponse<Downtime>> updateDowntimeWithHttpInfoAsync(Long downtimeId, Downtime body)
See updateDowntimeWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.Downtime).
downtimeId - ID of the downtime to update. (required)body - Update a downtime request body. (required)Copyright © 2024. All rights reserved.