@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ScorecardsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScorecardsApi.GetScorecardCampaignOptionalParameters
Manage optional parameters to getScorecardCampaign.
|
static class |
ScorecardsApi.ListScorecardCampaignsOptionalParameters
Manage optional parameters to listScorecardCampaigns.
|
static class |
ScorecardsApi.ListScorecardOutcomesOptionalParameters
Manage optional parameters to listScorecardOutcomes.
|
static class |
ScorecardsApi.ListScorecardRulesOptionalParameters
Manage optional parameters to listScorecardRules.
|
static class |
ScorecardsApi.ListScorecardScoresOptionalParameters
Manage optional parameters to listScorecardScores.
|
static class |
ScorecardsApi.ListScorecardsOptionalParameters
Manage optional parameters to listScorecards.
|
| Constructor and Description |
|---|
ScorecardsApi() |
ScorecardsApi(ApiClient apiClient) |
public ScorecardsApi()
public ScorecardsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic CampaignResponse createScorecardCampaign(CreateCampaignRequest body) throws ApiException
See createScorecardCampaignWithHttpInfo(com.datadog.api.client.v2.model.CreateCampaignRequest).
body - Campaign data. (required)ApiException - if fails to make API callpublic CompletableFuture<CampaignResponse> createScorecardCampaignAsync(CreateCampaignRequest body)
See createScorecardCampaignWithHttpInfoAsync(com.datadog.api.client.v2.model.CreateCampaignRequest).
body - Campaign data. (required)public ApiResponse<CampaignResponse> createScorecardCampaignWithHttpInfo(CreateCampaignRequest body) throws ApiException
body - Campaign data. (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<CampaignResponse>> createScorecardCampaignWithHttpInfoAsync(CreateCampaignRequest body)
See createScorecardCampaignWithHttpInfo(com.datadog.api.client.v2.model.CreateCampaignRequest).
body - Campaign data. (required)@Deprecated public 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 call@Deprecated public CompletableFuture<OutcomesBatchResponse> createScorecardOutcomesBatchAsync(OutcomesBatchRequest body)
See createScorecardOutcomesBatchWithHttpInfoAsync(com.datadog.api.client.v2.model.OutcomesBatchRequest).
body - Set of scorecard outcomes. (required)@Deprecated 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 | - |
@Deprecated 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 deleteScorecardCampaign(String campaignId) throws ApiException
campaignId - Campaign ID or key. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteScorecardCampaignAsync(String campaignId)
See deleteScorecardCampaignWithHttpInfoAsync(java.lang.String).
campaignId - Campaign ID or key. (required)public ApiResponse<Void> deleteScorecardCampaignWithHttpInfo(String campaignId) throws ApiException
campaignId - Campaign ID or key. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteScorecardCampaignWithHttpInfoAsync(String campaignId)
campaignId - Campaign ID or key. (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 CampaignResponse getScorecardCampaign(String campaignId) throws ApiException
campaignId - Campaign ID or key. (required)ApiException - if fails to make API callpublic CompletableFuture<CampaignResponse> getScorecardCampaignAsync(String campaignId)
campaignId - Campaign ID or key. (required)public CampaignResponse getScorecardCampaign(String campaignId, ScorecardsApi.GetScorecardCampaignOptionalParameters parameters) throws ApiException
campaignId - Campaign ID or key. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<CampaignResponse> getScorecardCampaignAsync(String campaignId, ScorecardsApi.GetScorecardCampaignOptionalParameters parameters)
campaignId - Campaign ID or key. (required)parameters - Optional parameters for the request.public ApiResponse<CampaignResponse> getScorecardCampaignWithHttpInfo(String campaignId, ScorecardsApi.GetScorecardCampaignOptionalParameters parameters) throws ApiException
campaignId - Campaign ID or key. (required)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 | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<CampaignResponse>> getScorecardCampaignWithHttpInfoAsync(String campaignId, ScorecardsApi.GetScorecardCampaignOptionalParameters parameters)
campaignId - Campaign ID or key. (required)parameters - Optional parameters for the request.public ListCampaignsResponse listScorecardCampaigns() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListCampaignsResponse> listScorecardCampaignsAsync()
public ListCampaignsResponse listScorecardCampaigns(ScorecardsApi.ListScorecardCampaignsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListCampaignsResponse> listScorecardCampaignsAsync(ScorecardsApi.ListScorecardCampaignsOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<ListCampaignsResponse> listScorecardCampaignsWithHttpInfo(ScorecardsApi.ListScorecardCampaignsOptionalParameters 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<ListCampaignsResponse>> listScorecardCampaignsWithHttpInfoAsync(ScorecardsApi.ListScorecardCampaignsOptionalParameters parameters)
parameters - Optional parameters for the request.public OutcomesResponse listScorecardOutcomes() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<OutcomesResponse> listScorecardOutcomesAsync()
public OutcomesResponse listScorecardOutcomes(ScorecardsApi.ListScorecardOutcomesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<OutcomesResponse> listScorecardOutcomesAsync(ScorecardsApi.ListScorecardOutcomesOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<OutcomesResponseDataItem> listScorecardOutcomesWithPagination()
public PaginationIterable<OutcomesResponseDataItem> listScorecardOutcomesWithPagination(ScorecardsApi.ListScorecardOutcomesOptionalParameters parameters)
public ApiResponse<OutcomesResponse> listScorecardOutcomesWithHttpInfo(ScorecardsApi.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(ScorecardsApi.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(ScorecardsApi.ListScorecardRulesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListRulesResponse> listScorecardRulesAsync(ScorecardsApi.ListScorecardRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<ListRulesResponseDataItem> listScorecardRulesWithPagination()
public PaginationIterable<ListRulesResponseDataItem> listScorecardRulesWithPagination(ScorecardsApi.ListScorecardRulesOptionalParameters parameters)
public ApiResponse<ListRulesResponse> listScorecardRulesWithHttpInfo(ScorecardsApi.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(ScorecardsApi.ListScorecardRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public ListScorecardsResponse listScorecards() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ListScorecardsResponse> listScorecardsAsync()
public ListScorecardsResponse listScorecards(ScorecardsApi.ListScorecardsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListScorecardsResponse> listScorecardsAsync(ScorecardsApi.ListScorecardsOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<ListScorecardsResponse> listScorecardsWithHttpInfo(ScorecardsApi.ListScorecardsOptionalParameters 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<ListScorecardsResponse>> listScorecardsWithHttpInfoAsync(ScorecardsApi.ListScorecardsOptionalParameters parameters)
parameters - Optional parameters for the request.public ListScorecardScoresResponse listScorecardScores(ScorecardScoresAggregation aggregation) throws ApiException
aggregation - The type of scores being requested. (required)ApiException - if fails to make API callpublic CompletableFuture<ListScorecardScoresResponse> listScorecardScoresAsync(ScorecardScoresAggregation aggregation)
aggregation - The type of scores being requested. (required)public ListScorecardScoresResponse listScorecardScores(ScorecardScoresAggregation aggregation, ScorecardsApi.ListScorecardScoresOptionalParameters parameters) throws ApiException
aggregation - The type of scores being requested. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListScorecardScoresResponse> listScorecardScoresAsync(ScorecardScoresAggregation aggregation, ScorecardsApi.ListScorecardScoresOptionalParameters parameters)
aggregation - The type of scores being requested. (required)parameters - Optional parameters for the request.public ApiResponse<ListScorecardScoresResponse> listScorecardScoresWithHttpInfo(ScorecardScoresAggregation aggregation, ScorecardsApi.ListScorecardScoresOptionalParameters parameters) throws ApiException
aggregation - The type of scores being requested. (required)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<ListScorecardScoresResponse>> listScorecardScoresWithHttpInfoAsync(ScorecardScoresAggregation aggregation, ScorecardsApi.ListScorecardScoresOptionalParameters parameters)
aggregation - The type of scores being requested. (required)parameters - Optional parameters for the request.public CampaignResponse updateScorecardCampaign(String campaignId, UpdateCampaignRequest body) throws ApiException
campaignId - Campaign ID or key. (required)body - Campaign data. (required)ApiException - if fails to make API callpublic CompletableFuture<CampaignResponse> updateScorecardCampaignAsync(String campaignId, UpdateCampaignRequest body)
campaignId - Campaign ID or key. (required)body - Campaign data. (required)public ApiResponse<CampaignResponse> updateScorecardCampaignWithHttpInfo(String campaignId, UpdateCampaignRequest body) throws ApiException
campaignId - Campaign ID or key. (required)body - Campaign data. (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<CampaignResponse>> updateScorecardCampaignWithHttpInfoAsync(String campaignId, UpdateCampaignRequest body)
campaignId - Campaign ID or key. (required)body - Campaign data. (required)public void updateScorecardOutcomes(UpdateOutcomesAsyncRequest body) throws ApiException
See updateScorecardOutcomesWithHttpInfo(com.datadog.api.client.v2.model.UpdateOutcomesAsyncRequest).
body - Set of scorecard outcomes. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> updateScorecardOutcomesAsync(UpdateOutcomesAsyncRequest body)
See updateScorecardOutcomesWithHttpInfoAsync(com.datadog.api.client.v2.model.UpdateOutcomesAsyncRequest).
body - Set of scorecard outcomes. (required)public ApiResponse<Void> updateScorecardOutcomesWithHttpInfo(UpdateOutcomesAsyncRequest body) throws ApiException
body - Set of scorecard outcomes. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Accepted | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> updateScorecardOutcomesWithHttpInfoAsync(UpdateOutcomesAsyncRequest body)
See updateScorecardOutcomesWithHttpInfo(com.datadog.api.client.v2.model.UpdateOutcomesAsyncRequest).
body - Set of scorecard outcomes. (required)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 © 2026. All rights reserved.