@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjectiveCorrectionsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters
Manage optional parameters to listSLOCorrection.
|
| Constructor and Description |
|---|
ServiceLevelObjectiveCorrectionsApi() |
ServiceLevelObjectiveCorrectionsApi(ApiClient apiClient) |
public ServiceLevelObjectiveCorrectionsApi()
public ServiceLevelObjectiveCorrectionsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic SLOCorrectionResponse createSLOCorrection(SLOCorrectionCreateRequest body) throws ApiException
See createSLOCorrectionWithHttpInfo(com.datadog.api.client.v1.model.SLOCorrectionCreateRequest).
body - Create an SLO Correction (required)ApiException - if fails to make API callpublic CompletableFuture<SLOCorrectionResponse> createSLOCorrectionAsync(SLOCorrectionCreateRequest body)
See createSLOCorrectionWithHttpInfoAsync(com.datadog.api.client.v1.model.SLOCorrectionCreateRequest).
body - Create an SLO Correction (required)public ApiResponse<SLOCorrectionResponse> createSLOCorrectionWithHttpInfo(SLOCorrectionCreateRequest body) throws ApiException
body - Create an SLO Correction (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | SLO Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOCorrectionResponse>> createSLOCorrectionWithHttpInfoAsync(SLOCorrectionCreateRequest body)
See createSLOCorrectionWithHttpInfo(com.datadog.api.client.v1.model.SLOCorrectionCreateRequest).
body - Create an SLO Correction (required)public void deleteSLOCorrection(String sloCorrectionId) throws ApiException
sloCorrectionId - The ID of the SLO correction object. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteSLOCorrectionAsync(String sloCorrectionId)
sloCorrectionId - The ID of the SLO correction object. (required)public ApiResponse<Void> deleteSLOCorrectionWithHttpInfo(String sloCorrectionId) throws ApiException
sloCorrectionId - The ID of the SLO correction object. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteSLOCorrectionWithHttpInfoAsync(String sloCorrectionId)
sloCorrectionId - The ID of the SLO correction object. (required)public SLOCorrectionResponse getSLOCorrection(String sloCorrectionId) throws ApiException
sloCorrectionId - The ID of the SLO correction object. (required)ApiException - if fails to make API callpublic CompletableFuture<SLOCorrectionResponse> getSLOCorrectionAsync(String sloCorrectionId)
sloCorrectionId - The ID of the SLO correction object. (required)public ApiResponse<SLOCorrectionResponse> getSLOCorrectionWithHttpInfo(String sloCorrectionId) throws ApiException
sloCorrectionId - The ID of the SLO correction object. (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<SLOCorrectionResponse>> getSLOCorrectionWithHttpInfoAsync(String sloCorrectionId)
sloCorrectionId - The ID of the SLO correction object. (required)public SLOCorrectionListResponse listSLOCorrection() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<SLOCorrectionListResponse> listSLOCorrectionAsync()
public SLOCorrectionListResponse listSLOCorrection(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<SLOCorrectionListResponse> listSLOCorrectionAsync(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<SLOCorrection> listSLOCorrectionWithPagination()
public PaginationIterable<SLOCorrection> listSLOCorrectionWithPagination(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters)
public ApiResponse<SLOCorrectionListResponse> listSLOCorrectionWithHttpInfo(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters 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<SLOCorrectionListResponse>> listSLOCorrectionWithHttpInfoAsync(ServiceLevelObjectiveCorrectionsApi.ListSLOCorrectionOptionalParameters parameters)
parameters - Optional parameters for the request.public SLOCorrectionResponse updateSLOCorrection(String sloCorrectionId, SLOCorrectionUpdateRequest body) throws ApiException
sloCorrectionId - The ID of the SLO correction object. (required)body - The edited SLO correction object. (required)ApiException - if fails to make API callpublic CompletableFuture<SLOCorrectionResponse> updateSLOCorrectionAsync(String sloCorrectionId, SLOCorrectionUpdateRequest body)
sloCorrectionId - The ID of the SLO correction object. (required)body - The edited SLO correction object. (required)public ApiResponse<SLOCorrectionResponse> updateSLOCorrectionWithHttpInfo(String sloCorrectionId, SLOCorrectionUpdateRequest body) throws ApiException
sloCorrectionId - The ID of the SLO correction object. (required)body - The edited SLO correction object. (required)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<SLOCorrectionResponse>> updateSLOCorrectionWithHttpInfoAsync(String sloCorrectionId, SLOCorrectionUpdateRequest body)
sloCorrectionId - The ID of the SLO correction object. (required)body - The edited SLO correction object. (required)Copyright © 2024. All rights reserved.