@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceScorecardsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceScorecardsApi.ListScorecardOutcomesOptionalParameters
Manage optional parameters to listScorecardOutcomes.
|
static class |
ServiceScorecardsApi.ListScorecardRulesOptionalParameters
Manage optional parameters to listScorecardRules.
|
| Constructor and Description |
|---|
ServiceScorecardsApi() |
ServiceScorecardsApi(ApiClient apiClient) |
public ServiceScorecardsApi()
public ServiceScorecardsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic OutcomesBatchResponse createScorecardOutcomesBatch(OutcomesBatchRequest body) throws ApiException
See createScorecardOutcomesBatchWithHttpInfo(com.datadog.api.client.v2.model.OutcomesBatchRequest).
body - Set of scorecard outcomes. (required)ApiException - if fails to make API callpublic CompletableFuture<OutcomesBatchResponse> createScorecardOutcomesBatchAsync(OutcomesBatchRequest body)
See createScorecardOutcomesBatchWithHttpInfoAsync(com.datadog.api.client.v2.model.OutcomesBatchRequest).
body - Set of scorecard outcomes. (required)public ApiResponse<OutcomesBatchResponse> createScorecardOutcomesBatchWithHttpInfo(OutcomesBatchRequest body) throws ApiException
body - Set of scorecard outcomes. (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<OutcomesBatchResponse>> createScorecardOutcomesBatchWithHttpInfoAsync(OutcomesBatchRequest body)
See createScorecardOutcomesBatchWithHttpInfo(com.datadog.api.client.v2.model.OutcomesBatchRequest).
body - Set of scorecard outcomes. (required)public CreateRuleResponse createScorecardRule(CreateRuleRequest body) throws ApiException
See createScorecardRuleWithHttpInfo(com.datadog.api.client.v2.model.CreateRuleRequest).
body - Rule attributes. (required)ApiException - if fails to make API callpublic CompletableFuture<CreateRuleResponse> createScorecardRuleAsync(CreateRuleRequest body)
See createScorecardRuleWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateRuleRequest).
body - Rule attributes. (required)public ApiResponse<CreateRuleResponse> createScorecardRuleWithHttpInfo(CreateRuleRequest body) throws ApiException
body - Rule attributes. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CreateRuleResponse>> createScorecardRuleWithHttpInfoAsync(CreateRuleRequest body)
See createScorecardRuleWithHttpInfo(com.datadog.api.client.v2.model.CreateRuleRequest).
body - Rule attributes. (required)public void deleteScorecardRule(String ruleId) throws ApiException
ruleId - The ID of the rule. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteScorecardRuleAsync(String ruleId)
ruleId - The ID of the rule. (required)public ApiResponse<Void> deleteScorecardRuleWithHttpInfo(String ruleId) throws ApiException
ruleId - The ID of the rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteScorecardRuleWithHttpInfoAsync(String ruleId)
ruleId - The ID of the rule. (required)public OutcomesResponse listScorecardOutcomes() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<OutcomesResponse> listScorecardOutcomesAsync()
public OutcomesResponse listScorecardOutcomes(ServiceScorecardsApi.ListScorecardOutcomesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<OutcomesResponse> listScorecardOutcomesAsync(ServiceScorecardsApi.ListScorecardOutcomesOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<OutcomesResponseDataItem> listScorecardOutcomesWithPagination()
public PaginationIterable<OutcomesResponseDataItem> listScorecardOutcomesWithPagination(ServiceScorecardsApi.ListScorecardOutcomesOptionalParameters parameters)
public ApiResponse<OutcomesResponse> listScorecardOutcomesWithHttpInfo(ServiceScorecardsApi.ListScorecardOutcomesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.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<OutcomesResponse>> listScorecardOutcomesWithHttpInfoAsync(ServiceScorecardsApi.ListScorecardOutcomesOptionalParameters parameters)
parameters - Optional parameters for the request.public ListRulesResponse listScorecardRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListRulesResponse> listScorecardRulesAsync()
public ListRulesResponse listScorecardRules(ServiceScorecardsApi.ListScorecardRulesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListRulesResponse> listScorecardRulesAsync(ServiceScorecardsApi.ListScorecardRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<ListRulesResponseDataItem> listScorecardRulesWithPagination()
public PaginationIterable<ListRulesResponseDataItem> listScorecardRulesWithPagination(ServiceScorecardsApi.ListScorecardRulesOptionalParameters parameters)
public ApiResponse<ListRulesResponse> listScorecardRulesWithHttpInfo(ServiceScorecardsApi.ListScorecardRulesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.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<ListRulesResponse>> listScorecardRulesWithHttpInfoAsync(ServiceScorecardsApi.ListScorecardRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public UpdateRuleResponse updateScorecardRule(String ruleId, UpdateRuleRequest body) throws ApiException
See updateScorecardRuleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UpdateRuleRequest).
ruleId - The ID of the rule. (required)body - Rule attributes. (required)ApiException - if fails to make API callpublic CompletableFuture<UpdateRuleResponse> updateScorecardRuleAsync(String ruleId, UpdateRuleRequest body)
ruleId - The ID of the rule. (required)body - Rule attributes. (required)public ApiResponse<UpdateRuleResponse> updateScorecardRuleWithHttpInfo(String ruleId, UpdateRuleRequest body) throws ApiException
ruleId - The ID of the rule. (required)body - Rule attributes. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Rule updated successfully | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UpdateRuleResponse>> updateScorecardRuleWithHttpInfoAsync(String ruleId, UpdateRuleRequest body)
See updateScorecardRuleWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UpdateRuleRequest).
ruleId - The ID of the rule. (required)body - Rule attributes. (required)Copyright © 2024. All rights reserved.