@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjectivesApi extends Object
| Constructor and Description |
|---|
ServiceLevelObjectivesApi() |
ServiceLevelObjectivesApi(ApiClient apiClient) |
public ServiceLevelObjectivesApi()
public ServiceLevelObjectivesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic SLOReportPostResponse createSLOReportJob(SloReportCreateRequest body) throws ApiException
See createSLOReportJobWithHttpInfo(com.datadog.api.client.v2.model.SloReportCreateRequest).
body - Create SLO report job request body. (required)ApiException - if fails to make API callpublic CompletableFuture<SLOReportPostResponse> createSLOReportJobAsync(SloReportCreateRequest body)
See createSLOReportJobWithHttpInfoAsync(com.datadog.api.client.v2.model.SloReportCreateRequest).
body - Create SLO report job request body. (required)public ApiResponse<SLOReportPostResponse> createSLOReportJobWithHttpInfo(SloReportCreateRequest body) throws ApiException
Check the status of the job and download the CSV report using the returned report_id
.
body - Create SLO report job 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<SLOReportPostResponse>> createSLOReportJobWithHttpInfoAsync(SloReportCreateRequest body)
See createSLOReportJobWithHttpInfo(com.datadog.api.client.v2.model.SloReportCreateRequest).
body - Create SLO report job request body. (required)public String getSLOReport(String reportId) throws ApiException
reportId - The ID of the report job. (required)ApiException - if fails to make API callpublic CompletableFuture<String> getSLOReportAsync(String reportId)
reportId - The ID of the report job. (required)public ApiResponse<String> getSLOReportWithHttpInfo(String reportId) throws ApiException
Reports are not guaranteed to exist indefinitely. Datadog recommends that you download the report as soon as it is available.
reportId - The ID of the report job. (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<String>> getSLOReportWithHttpInfoAsync(String reportId)
reportId - The ID of the report job. (required)public SLOReportStatusGetResponse getSLOReportJobStatus(String reportId) throws ApiException
reportId - The ID of the report job. (required)ApiException - if fails to make API callpublic CompletableFuture<SLOReportStatusGetResponse> getSLOReportJobStatusAsync(String reportId)
See getSLOReportJobStatusWithHttpInfoAsync(java.lang.String).
reportId - The ID of the report job. (required)public ApiResponse<SLOReportStatusGetResponse> getSLOReportJobStatusWithHttpInfo(String reportId) throws ApiException
reportId - The ID of the report job. (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<SLOReportStatusGetResponse>> getSLOReportJobStatusWithHttpInfoAsync(String reportId)
reportId - The ID of the report job. (required)Copyright © 2024. All rights reserved.