Package com.datadog.api.client.v1.api
Class DowntimesApi
java.lang.Object
com.datadog.api.client.v1.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 listDowntimes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelDowntime(Long downtimeId) Deprecated.cancelDowntimeAsync(Long downtimeId) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.cancelDowntimeWithHttpInfo(Long downtimeId) Deprecated.cancelDowntimeWithHttpInfoAsync(Long downtimeId) Deprecated.createDowntime(Downtime body) Deprecated.createDowntimeAsync(Downtime body) Deprecated.Deprecated.Deprecated.Get the API client.getDowntime(Long downtimeId) Deprecated.getDowntimeAsync(Long downtimeId) Deprecated.getDowntimeWithHttpInfo(Long downtimeId) Deprecated.getDowntimeWithHttpInfoAsync(Long downtimeId) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.listMonitorDowntimes(Long monitorId) Deprecated.listMonitorDowntimesAsync(Long monitorId) Deprecated.listMonitorDowntimesWithHttpInfo(Long monitorId) Deprecated.listMonitorDowntimesWithHttpInfoAsync(Long monitorId) Deprecated.voidsetApiClient(ApiClient apiClient) Set the API client.updateDowntime(Long downtimeId, Downtime body) Deprecated.updateDowntimeAsync(Long downtimeId, Downtime body) Deprecated.updateDowntimeWithHttpInfo(Long downtimeId, Downtime body) Deprecated.updateDowntimeWithHttpInfoAsync(Long downtimeId, Downtime body) Deprecated.
-
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
Deprecated.Cancel a downtime.- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Throws:
ApiException- if fails to make API call
-
cancelDowntimeAsync
Deprecated.Cancel a downtime.- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Returns:
- CompletableFuture
-
cancelDowntimeWithHttpInfo
@Deprecated public ApiResponse<Void> cancelDowntimeWithHttpInfo(Long downtimeId) throws ApiException Deprecated.Cancel a downtime. Note: This endpoint has been deprecated. Please use v2 endpoints.- 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
@Deprecated public CompletableFuture<ApiResponse<Void>> cancelDowntimeWithHttpInfoAsync(Long downtimeId) Deprecated.Cancel a downtime.- Parameters:
downtimeId- ID of the downtime to cancel. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
cancelDowntimesByScope
@Deprecated public CanceledDowntimesIds cancelDowntimesByScope(CancelDowntimesByScopeRequest body) throws ApiException Deprecated.Cancel downtimes by scope.See
cancelDowntimesByScopeWithHttpInfo(com.datadog.api.client.v1.model.CancelDowntimesByScopeRequest).- Parameters:
body- Scope to cancel downtimes for. (required)- Returns:
- CanceledDowntimesIds
- Throws:
ApiException- if fails to make API call
-
cancelDowntimesByScopeAsync
@Deprecated public CompletableFuture<CanceledDowntimesIds> cancelDowntimesByScopeAsync(CancelDowntimesByScopeRequest body) Deprecated.Cancel downtimes by scope.- Parameters:
body- Scope to cancel downtimes for. (required)- Returns:
- CompletableFuture<CanceledDowntimesIds>
-
cancelDowntimesByScopeWithHttpInfo
@Deprecated public ApiResponse<CanceledDowntimesIds> cancelDowntimesByScopeWithHttpInfo(CancelDowntimesByScopeRequest body) throws ApiException Deprecated.Delete all downtimes that match the scope ofX. 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.- Parameters:
body- Scope to cancel downtimes for. (required)- Returns:
- ApiResponse<CanceledDowntimesIds>
- 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 Downtimes not found - 429 Too many requests -
-
cancelDowntimesByScopeWithHttpInfoAsync
@Deprecated public CompletableFuture<ApiResponse<CanceledDowntimesIds>> cancelDowntimesByScopeWithHttpInfoAsync(CancelDowntimesByScopeRequest body) Deprecated.Cancel downtimes by scope.See
cancelDowntimesByScopeWithHttpInfo(com.datadog.api.client.v1.model.CancelDowntimesByScopeRequest).- Parameters:
body- Scope to cancel downtimes for. (required)- Returns:
- CompletableFuture<ApiResponse<CanceledDowntimesIds>>
-
createDowntime
Deprecated.Schedule a downtime.See
createDowntimeWithHttpInfo(com.datadog.api.client.v1.model.Downtime).- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- Downtime
- Throws:
ApiException- if fails to make API call
-
createDowntimeAsync
Deprecated.Schedule a downtime.See
createDowntimeWithHttpInfoAsync(com.datadog.api.client.v1.model.Downtime).- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- CompletableFuture<Downtime>
-
createDowntimeWithHttpInfo
@Deprecated public ApiResponse<Downtime> createDowntimeWithHttpInfo(Downtime body) throws ApiException Deprecated.Schedule a downtime. Note: This endpoint has been deprecated. Please use v2 endpoints.- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- ApiResponse<Downtime>
- 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
@Deprecated public CompletableFuture<ApiResponse<Downtime>> createDowntimeWithHttpInfoAsync(Downtime body) Deprecated.Schedule a downtime.See
createDowntimeWithHttpInfo(com.datadog.api.client.v1.model.Downtime).- Parameters:
body- Schedule a downtime request body. (required)- Returns:
- CompletableFuture<ApiResponse<Downtime>>
-
getDowntime
Deprecated.Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)- Returns:
- Downtime
- Throws:
ApiException- if fails to make API call
-
getDowntimeAsync
Deprecated.Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)- Returns:
- CompletableFuture<Downtime>
-
getDowntimeWithHttpInfo
@Deprecated public ApiResponse<Downtime> getDowntimeWithHttpInfo(Long downtimeId) throws ApiException Deprecated.Get downtime detail bydowntime_id. Note: This endpoint has been deprecated. Please use v2 endpoints.- Parameters:
downtimeId- ID of the downtime to fetch. (required)- Returns:
- ApiResponse<Downtime>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Downtime not found - 429 Too many requests -
-
getDowntimeWithHttpInfoAsync
@Deprecated public CompletableFuture<ApiResponse<Downtime>> getDowntimeWithHttpInfoAsync(Long downtimeId) Deprecated.Get a downtime.- Parameters:
downtimeId- ID of the downtime to fetch. (required)- Returns:
- CompletableFuture<ApiResponse<Downtime>>
-
listDowntimes
Deprecated.Get all downtimes.- Returns:
- List<Downtime>
- Throws:
ApiException- if fails to make API call
-
listDowntimesAsync
Deprecated.Get all downtimes.- Returns:
- CompletableFuture<List<Downtime>>
-
listDowntimes
@Deprecated public List<Downtime> listDowntimes(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException Deprecated.Get all downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- List<Downtime>
- Throws:
ApiException- if fails to make API call
-
listDowntimesAsync
@Deprecated public CompletableFuture<List<Downtime>> listDowntimesAsync(DowntimesApi.ListDowntimesOptionalParameters parameters) Deprecated.Get all downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<List<Downtime>>
-
listDowntimesWithHttpInfo
@Deprecated public ApiResponse<List<Downtime>> listDowntimesWithHttpInfo(DowntimesApi.ListDowntimesOptionalParameters parameters) throws ApiException Deprecated.Get all scheduled downtimes. Note: This endpoint has been deprecated. Please use v2 endpoints.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<List<Downtime>>
- 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
@Deprecated public CompletableFuture<ApiResponse<List<Downtime>>> listDowntimesWithHttpInfoAsync(DowntimesApi.ListDowntimesOptionalParameters parameters) Deprecated.Get all downtimes.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<List<Downtime>>>
-
listMonitorDowntimes
Deprecated.Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor (required)- Returns:
- List<Downtime>
- Throws:
ApiException- if fails to make API call
-
listMonitorDowntimesAsync
Deprecated.Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor (required)- Returns:
- CompletableFuture<List<Downtime>>
-
listMonitorDowntimesWithHttpInfo
@Deprecated public ApiResponse<List<Downtime>> listMonitorDowntimesWithHttpInfo(Long monitorId) throws ApiException Deprecated.Get all active v1 downtimes for the specified monitor. Note: This endpoint has been deprecated. Please use v2 endpoints.- Parameters:
monitorId- The id of the monitor (required)- Returns:
- ApiResponse<List<Downtime>>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Monitor Not Found error - 429 Too many requests -
-
listMonitorDowntimesWithHttpInfoAsync
@Deprecated public CompletableFuture<ApiResponse<List<Downtime>>> listMonitorDowntimesWithHttpInfoAsync(Long monitorId) Deprecated.Get active downtimes for a monitor.- Parameters:
monitorId- The id of the monitor (required)- Returns:
- CompletableFuture<ApiResponse<List<Downtime>>>
-
updateDowntime
Deprecated.Update a downtime.See
updateDowntimeWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.Downtime).- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- Downtime
- Throws:
ApiException- if fails to make API call
-
updateDowntimeAsync
Deprecated.Update a downtime.See
updateDowntimeWithHttpInfoAsync(java.lang.Long, com.datadog.api.client.v1.model.Downtime).- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- CompletableFuture<Downtime>
-
updateDowntimeWithHttpInfo
@Deprecated public ApiResponse<Downtime> updateDowntimeWithHttpInfo(Long downtimeId, Downtime body) throws ApiException Deprecated.Update a single downtime bydowntime_id. Note: This endpoint has been deprecated. Please use v2 endpoints.- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- ApiResponse<Downtime>
- 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
@Deprecated public CompletableFuture<ApiResponse<Downtime>> updateDowntimeWithHttpInfoAsync(Long downtimeId, Downtime body) Deprecated.Update a downtime.See
updateDowntimeWithHttpInfo(java.lang.Long, com.datadog.api.client.v1.model.Downtime).- Parameters:
downtimeId- ID of the downtime to update. (required)body- Update a downtime request body. (required)- Returns:
- CompletableFuture<ApiResponse<Downtime>>
-