@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceLevelObjectivesApi extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServiceLevelObjectivesApi.DeleteSLOOptionalParameters
Manage optional parameters to deleteSLO.
|
static class |
ServiceLevelObjectivesApi.GetSLOHistoryOptionalParameters
Manage optional parameters to getSLOHistory.
|
static class |
ServiceLevelObjectivesApi.GetSLOOptionalParameters
Manage optional parameters to getSLO.
|
static class |
ServiceLevelObjectivesApi.ListSLOsOptionalParameters
Manage optional parameters to listSLOs.
|
static class |
ServiceLevelObjectivesApi.SearchSLOOptionalParameters
Manage optional parameters to searchSLO.
|
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 CheckCanDeleteSLOResponse checkCanDeleteSLO(String ids) throws ApiException
ids
- A comma separated list of the IDs of the service level objectives objects.
(required)ApiException
- if fails to make API callpublic CompletableFuture<CheckCanDeleteSLOResponse> checkCanDeleteSLOAsync(String ids)
ids
- A comma separated list of the IDs of the service level objectives objects.
(required)public ApiResponse<CheckCanDeleteSLOResponse> checkCanDeleteSLOWithHttpInfo(String ids) throws ApiException
ids
- A comma separated list of the IDs of the service level objectives objects.
(required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
409 | Conflict | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<CheckCanDeleteSLOResponse>> checkCanDeleteSLOWithHttpInfoAsync(String ids)
ids
- A comma separated list of the IDs of the service level objectives objects.
(required)public SLOListResponse createSLO(ServiceLevelObjectiveRequest body) throws ApiException
See createSLOWithHttpInfo(com.datadog.api.client.v1.model.ServiceLevelObjectiveRequest)
.
body
- Service level objective request object. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLOListResponse> createSLOAsync(ServiceLevelObjectiveRequest body)
See createSLOWithHttpInfoAsync(com.datadog.api.client.v1.model.ServiceLevelObjectiveRequest)
.
body
- Service level objective request object. (required)public ApiResponse<SLOListResponse> createSLOWithHttpInfo(ServiceLevelObjectiveRequest body) throws ApiException
body
- Service level objective request object. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOListResponse>> createSLOWithHttpInfoAsync(ServiceLevelObjectiveRequest body)
See createSLOWithHttpInfo(com.datadog.api.client.v1.model.ServiceLevelObjectiveRequest)
.
body
- Service level objective request object. (required)public SLODeleteResponse deleteSLO(String sloId) throws ApiException
sloId
- The ID of the service level objective. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLODeleteResponse> deleteSLOAsync(String sloId)
sloId
- The ID of the service level objective. (required)public SLODeleteResponse deleteSLO(String sloId, ServiceLevelObjectivesApi.DeleteSLOOptionalParameters parameters) throws ApiException
sloId
- The ID of the service level objective. (required)parameters
- Optional parameters for the request.ApiException
- if fails to make API callpublic CompletableFuture<SLODeleteResponse> deleteSLOAsync(String sloId, ServiceLevelObjectivesApi.DeleteSLOOptionalParameters parameters)
sloId
- The ID of the service level objective. (required)parameters
- Optional parameters for the request.public ApiResponse<SLODeleteResponse> deleteSLOWithHttpInfo(String sloId, ServiceLevelObjectivesApi.DeleteSLOOptionalParameters parameters) throws ApiException
If an SLO is used in a dashboard, the DELETE /v1/slo/
endpoint returns a 409
conflict error because the SLO is referenced in a dashboard.
sloId
- The ID of the service level objective. (required)parameters
- Optional parameters for the request.ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
403 | Forbidden | - |
404 | Not found | - |
409 | Conflict | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLODeleteResponse>> deleteSLOWithHttpInfoAsync(String sloId, ServiceLevelObjectivesApi.DeleteSLOOptionalParameters parameters)
sloId
- The ID of the service level objective. (required)parameters
- Optional parameters for the request.public SLOBulkDeleteResponse deleteSLOTimeframeInBulk(Map<String,List<SLOTimeframe>> body) throws ApiException
body
- Delete multiple service level objective objects request body. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLOBulkDeleteResponse> deleteSLOTimeframeInBulkAsync(Map<String,List<SLOTimeframe>> body)
body
- Delete multiple service level objective objects request body. (required)public ApiResponse<SLOBulkDeleteResponse> deleteSLOTimeframeInBulkWithHttpInfo(Map<String,List<SLOTimeframe>> body) throws ApiException
This endpoint facilitates deletion of one or more thresholds for one or more service level objective objects. If all thresholds are deleted, the service level objective object is deleted as well.
body
- Delete multiple service level objective objects request body. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOBulkDeleteResponse>> deleteSLOTimeframeInBulkWithHttpInfoAsync(Map<String,List<SLOTimeframe>> body)
body
- Delete multiple service level objective objects request body. (required)public SLOResponse getSLO(String sloId) throws ApiException
sloId
- The ID of the service level objective object. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLOResponse> getSLOAsync(String sloId)
sloId
- The ID of the service level objective object. (required)public SLOResponse getSLO(String sloId, ServiceLevelObjectivesApi.GetSLOOptionalParameters parameters) throws ApiException
sloId
- The ID of the service level objective object. (required)parameters
- Optional parameters for the request.ApiException
- if fails to make API callpublic CompletableFuture<SLOResponse> getSLOAsync(String sloId, ServiceLevelObjectivesApi.GetSLOOptionalParameters parameters)
sloId
- The ID of the service level objective object. (required)parameters
- Optional parameters for the request.public ApiResponse<SLOResponse> getSLOWithHttpInfo(String sloId, ServiceLevelObjectivesApi.GetSLOOptionalParameters parameters) throws ApiException
sloId
- The ID of the service level objective object. (required)parameters
- Optional parameters for the request.ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
403 | Forbidden | - |
404 | Not found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOResponse>> getSLOWithHttpInfoAsync(String sloId, ServiceLevelObjectivesApi.GetSLOOptionalParameters parameters)
sloId
- The ID of the service level objective object. (required)parameters
- Optional parameters for the request.public SLOCorrectionListResponse getSLOCorrections(String sloId) throws ApiException
sloId
- The ID of the service level objective object. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLOCorrectionListResponse> getSLOCorrectionsAsync(String sloId)
sloId
- The ID of the service level objective object. (required)public ApiResponse<SLOCorrectionListResponse> getSLOCorrectionsWithHttpInfo(String sloId) throws ApiException
sloId
- The ID of the service level objective object. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOCorrectionListResponse>> getSLOCorrectionsWithHttpInfoAsync(String sloId)
sloId
- The ID of the service level objective object. (required)public SLOHistoryResponse getSLOHistory(String sloId, Long fromTs, Long toTs) throws ApiException
sloId
- The ID of the service level objective object. (required)fromTs
- The from
timestamp for the query window in epoch seconds. (required)toTs
- The to
timestamp for the query window in epoch seconds. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLOHistoryResponse> getSLOHistoryAsync(String sloId, Long fromTs, Long toTs)
sloId
- The ID of the service level objective object. (required)fromTs
- The from
timestamp for the query window in epoch seconds. (required)toTs
- The to
timestamp for the query window in epoch seconds. (required)public SLOHistoryResponse getSLOHistory(String sloId, Long fromTs, Long toTs, ServiceLevelObjectivesApi.GetSLOHistoryOptionalParameters parameters) throws ApiException
sloId
- The ID of the service level objective object. (required)fromTs
- The from
timestamp for the query window in epoch seconds. (required)toTs
- The to
timestamp for the query window in epoch seconds. (required)parameters
- Optional parameters for the request.ApiException
- if fails to make API callpublic CompletableFuture<SLOHistoryResponse> getSLOHistoryAsync(String sloId, Long fromTs, Long toTs, ServiceLevelObjectivesApi.GetSLOHistoryOptionalParameters parameters)
sloId
- The ID of the service level objective object. (required)fromTs
- The from
timestamp for the query window in epoch seconds. (required)toTs
- The to
timestamp for the query window in epoch seconds. (required)parameters
- Optional parameters for the request.public ApiResponse<SLOHistoryResponse> getSLOHistoryWithHttpInfo(String sloId, Long fromTs, Long toTs, ServiceLevelObjectivesApi.GetSLOHistoryOptionalParameters parameters) throws ApiException
The detailed history data is structured according to the source data type. For example, metric data is included for event SLOs that use the metric source, and monitor SLO types include the monitor transition history.
Note: There are different response formats for event based and time based SLOs. Examples of both are shown.
sloId
- The ID of the service level objective object. (required)fromTs
- The from
timestamp for the query window in epoch seconds. (required)toTs
- The to
timestamp for the query window in epoch seconds. (required)parameters
- Optional parameters for the request.ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOHistoryResponse>> getSLOHistoryWithHttpInfoAsync(String sloId, Long fromTs, Long toTs, ServiceLevelObjectivesApi.GetSLOHistoryOptionalParameters parameters)
sloId
- The ID of the service level objective object. (required)fromTs
- The from
timestamp for the query window in epoch seconds. (required)toTs
- The to
timestamp for the query window in epoch seconds. (required)parameters
- Optional parameters for the request.public SLOListResponse listSLOs() throws ApiException
ApiException
- if fails to make API callpublic CompletableFuture<SLOListResponse> listSLOsAsync()
public SLOListResponse listSLOs(ServiceLevelObjectivesApi.ListSLOsOptionalParameters parameters) throws ApiException
parameters
- Optional parameters for the request.ApiException
- if fails to make API callpublic CompletableFuture<SLOListResponse> listSLOsAsync(ServiceLevelObjectivesApi.ListSLOsOptionalParameters parameters)
parameters
- Optional parameters for the request.public ApiResponse<SLOListResponse> listSLOsWithHttpInfo(ServiceLevelObjectivesApi.ListSLOsOptionalParameters parameters) throws ApiException
parameters
- Optional parameters for the request.ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOListResponse>> listSLOsWithHttpInfoAsync(ServiceLevelObjectivesApi.ListSLOsOptionalParameters parameters)
parameters
- Optional parameters for the request.public SearchSLOResponse searchSLO() throws ApiException
ApiException
- if fails to make API callpublic CompletableFuture<SearchSLOResponse> searchSLOAsync()
public SearchSLOResponse searchSLO(ServiceLevelObjectivesApi.SearchSLOOptionalParameters parameters) throws ApiException
parameters
- Optional parameters for the request.ApiException
- if fails to make API callpublic CompletableFuture<SearchSLOResponse> searchSLOAsync(ServiceLevelObjectivesApi.SearchSLOOptionalParameters parameters)
parameters
- Optional parameters for the request.public ApiResponse<SearchSLOResponse> searchSLOWithHttpInfo(ServiceLevelObjectivesApi.SearchSLOOptionalParameters parameters) throws ApiException
parameters
- Optional parameters for the request.ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SearchSLOResponse>> searchSLOWithHttpInfoAsync(ServiceLevelObjectivesApi.SearchSLOOptionalParameters parameters)
parameters
- Optional parameters for the request.public SLOListResponse updateSLO(String sloId, ServiceLevelObjective body) throws ApiException
See updateSLOWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ServiceLevelObjective)
.
sloId
- The ID of the service level objective object. (required)body
- The edited service level objective request object. (required)ApiException
- if fails to make API callpublic CompletableFuture<SLOListResponse> updateSLOAsync(String sloId, ServiceLevelObjective body)
See updateSLOWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.ServiceLevelObjective)
.
sloId
- The ID of the service level objective object. (required)body
- The edited service level objective request object. (required)public ApiResponse<SLOListResponse> updateSLOWithHttpInfo(String sloId, ServiceLevelObjective body) throws ApiException
sloId
- The ID of the service level objective object. (required)body
- The edited service level objective request object. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<SLOListResponse>> updateSLOWithHttpInfoAsync(String sloId, ServiceLevelObjective body)
See updateSLOWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ServiceLevelObjective)
.
sloId
- The ID of the service level objective object. (required)body
- The edited service level objective request object. (required)Copyright © 2023. All rights reserved.