Package com.datadog.api.client.v1.api
Class ServiceLevelObjectiveCorrectionsApi
java.lang.Object
com.datadog.api.client.v1.api.ServiceLevelObjectiveCorrectionsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ServiceLevelObjectiveCorrectionsApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listSLOCorrection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an SLO correction.Create an SLO correction.Create an SLO correction.Create an SLO correction.voiddeleteSLOCorrection(String sloCorrectionId) Delete an SLO correction.deleteSLOCorrectionAsync(String sloCorrectionId) Delete an SLO correction.deleteSLOCorrectionWithHttpInfo(String sloCorrectionId) Permanently delete the specified SLO correction object.deleteSLOCorrectionWithHttpInfoAsync(String sloCorrectionId) Delete an SLO correction.Get the API client.getSLOCorrection(String sloCorrectionId) Get an SLO correction for an SLO.getSLOCorrectionAsync(String sloCorrectionId) Get an SLO correction for an SLO.getSLOCorrectionWithHttpInfo(String sloCorrectionId) Get an SLO correction.getSLOCorrectionWithHttpInfoAsync(String sloCorrectionId) Get an SLO correction for an SLO.Get all SLO corrections.listSLOCorrection(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.Get all SLO corrections.listSLOCorrectionAsync(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.listSLOCorrectionWithHttpInfo(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all Service Level Objective corrections.listSLOCorrectionWithHttpInfoAsync(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.Get all SLO corrections.listSLOCorrectionWithPagination(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.voidsetApiClient(ApiClient apiClient) Set the API client.updateSLOCorrection(String sloCorrectionId, SLOCorrectionUpdateRequest body) Update an SLO correction.updateSLOCorrectionAsync(String sloCorrectionId, SLOCorrectionUpdateRequest body) Update an SLO correction.updateSLOCorrectionWithHttpInfo(String sloCorrectionId, SLOCorrectionUpdateRequest body) Update the specified SLO correction object.updateSLOCorrectionWithHttpInfoAsync(String sloCorrectionId, SLOCorrectionUpdateRequest body) Update an SLO correction.
-
Constructor Details
-
ServiceLevelObjectiveCorrectionsApi
public ServiceLevelObjectiveCorrectionsApi() -
ServiceLevelObjectiveCorrectionsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createSLOCorrection
public SLOCorrectionResponse createSLOCorrection(SLOCorrectionCreateRequest body) throws ApiException Create an SLO correction.See
createSLOCorrectionWithHttpInfo(com.datadog.api.client.v1.model.SLOCorrectionCreateRequest).- Parameters:
body- Create an SLO Correction (required)- Returns:
- SLOCorrectionResponse
- Throws:
ApiException- if fails to make API call
-
createSLOCorrectionAsync
public CompletableFuture<SLOCorrectionResponse> createSLOCorrectionAsync(SLOCorrectionCreateRequest body) Create an SLO correction.See
createSLOCorrectionWithHttpInfoAsync(com.datadog.api.client.v1.model.SLOCorrectionCreateRequest).- Parameters:
body- Create an SLO Correction (required)- Returns:
- CompletableFuture<SLOCorrectionResponse>
-
createSLOCorrectionWithHttpInfo
public ApiResponse<SLOCorrectionResponse> createSLOCorrectionWithHttpInfo(SLOCorrectionCreateRequest body) throws ApiException Create an SLO correction. Useslo_idto apply the correction to a single SLO, orslo_queryto apply the correction to SLOs that match a query. Exactly one ofslo_idorslo_queryis required.- Parameters:
body- Create an SLO Correction (required)- Returns:
- ApiResponse<SLOCorrectionResponse>
- 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 SLO Not Found - 429 Too many requests -
-
createSLOCorrectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<SLOCorrectionResponse>> createSLOCorrectionWithHttpInfoAsync(SLOCorrectionCreateRequest body) Create an SLO correction.See
createSLOCorrectionWithHttpInfo(com.datadog.api.client.v1.model.SLOCorrectionCreateRequest).- Parameters:
body- Create an SLO Correction (required)- Returns:
- CompletableFuture<ApiResponse<SLOCorrectionResponse>>
-
deleteSLOCorrection
Delete an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Throws:
ApiException- if fails to make API call
-
deleteSLOCorrectionAsync
Delete an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Returns:
- CompletableFuture
-
deleteSLOCorrectionWithHttpInfo
public ApiResponse<Void> deleteSLOCorrectionWithHttpInfo(String sloCorrectionId) throws ApiException Permanently delete the specified SLO correction object.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (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 Not found - 429 Too many requests -
-
deleteSLOCorrectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteSLOCorrectionWithHttpInfoAsync(String sloCorrectionId) Delete an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getSLOCorrection
Get an SLO correction for an SLO.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Returns:
- SLOCorrectionResponse
- Throws:
ApiException- if fails to make API call
-
getSLOCorrectionAsync
Get an SLO correction for an SLO.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Returns:
- CompletableFuture<SLOCorrectionResponse>
-
getSLOCorrectionWithHttpInfo
public ApiResponse<SLOCorrectionResponse> getSLOCorrectionWithHttpInfo(String sloCorrectionId) throws ApiException Get an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Returns:
- ApiResponse<SLOCorrectionResponse>
- 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 -
-
getSLOCorrectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<SLOCorrectionResponse>> getSLOCorrectionWithHttpInfoAsync(String sloCorrectionId) Get an SLO correction for an SLO.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)- Returns:
- CompletableFuture<ApiResponse<SLOCorrectionResponse>>
-
listSLOCorrection
Get all SLO corrections.- Returns:
- SLOCorrectionListResponse
- Throws:
ApiException- if fails to make API call
-
listSLOCorrectionAsync
Get all SLO corrections.- Returns:
- CompletableFuture<SLOCorrectionListResponse>
-
listSLOCorrection
public SLOCorrectionListResponse listSLOCorrection(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) throws ApiException Get all SLO corrections.- Parameters:
parameters- Optional parameters for the request.- Returns:
- SLOCorrectionListResponse
- Throws:
ApiException- if fails to make API call
-
listSLOCorrectionAsync
public CompletableFuture<SLOCorrectionListResponse> listSLOCorrectionAsync(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<SLOCorrectionListResponse>
-
listSLOCorrectionWithPagination
Get all SLO corrections.- Returns:
- PaginationIterable<SLOCorrection>
-
listSLOCorrectionWithPagination
public PaginationIterable<SLOCorrection> listSLOCorrectionWithPagination(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.- Returns:
- SLOCorrectionListResponse
-
listSLOCorrectionWithHttpInfo
public ApiResponse<SLOCorrectionListResponse> listSLOCorrectionWithHttpInfo(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) throws ApiException Get all Service Level Objective corrections.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<SLOCorrectionListResponse>
- 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 -
-
listSLOCorrectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<SLOCorrectionListResponse>> listSLOCorrectionWithHttpInfoAsync(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) Get all SLO corrections.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<SLOCorrectionListResponse>>
-
updateSLOCorrection
public SLOCorrectionResponse updateSLOCorrection(String sloCorrectionId, SLOCorrectionUpdateRequest body) throws ApiException Update an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)body- The edited SLO correction object. (required)- Returns:
- SLOCorrectionResponse
- Throws:
ApiException- if fails to make API call
-
updateSLOCorrectionAsync
public CompletableFuture<SLOCorrectionResponse> updateSLOCorrectionAsync(String sloCorrectionId, SLOCorrectionUpdateRequest body) Update an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)body- The edited SLO correction object. (required)- Returns:
- CompletableFuture<SLOCorrectionResponse>
-
updateSLOCorrectionWithHttpInfo
public ApiResponse<SLOCorrectionResponse> updateSLOCorrectionWithHttpInfo(String sloCorrectionId, SLOCorrectionUpdateRequest body) throws ApiException Update the specified SLO correction object.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)body- The edited SLO correction object. (required)- Returns:
- ApiResponse<SLOCorrectionResponse>
- 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 -
-
updateSLOCorrectionWithHttpInfoAsync
public CompletableFuture<ApiResponse<SLOCorrectionResponse>> updateSLOCorrectionWithHttpInfoAsync(String sloCorrectionId, SLOCorrectionUpdateRequest body) Update an SLO correction.- Parameters:
sloCorrectionId- The ID of the SLO correction object. (required)body- The edited SLO correction object. (required)- Returns:
- CompletableFuture<ApiResponse<SLOCorrectionResponse>>
-