@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SpaApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SpaApi.GetSPARecommendationsOptionalParameters
Manage optional parameters to getSPARecommendations.
|
static class |
SpaApi.GetSPARecommendationsWithShardOptionalParameters
Manage optional parameters to getSPARecommendationsWithShard.
|
public SpaApi()
public SpaApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic RecommendationDocument getSPARecommendations(String service) throws ApiException
service - The service name for a spark job. (required)ApiException - if fails to make API callpublic CompletableFuture<RecommendationDocument> getSPARecommendationsAsync(String service)
service - The service name for a spark job. (required)public RecommendationDocument getSPARecommendations(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) throws ApiException
service - The service name for a spark job. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<RecommendationDocument> getSPARecommendationsAsync(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters)
service - The service name for a spark job. (required)parameters - Optional parameters for the request.public ApiResponse<RecommendationDocument> getSPARecommendationsWithHttpInfo(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) throws ApiException
service - The service name for a spark job. (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 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RecommendationDocument>> getSPARecommendationsWithHttpInfoAsync(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters)
service - The service name for a spark job. (required)parameters - Optional parameters for the request.public RecommendationDocument getSPARecommendationsWithShard(String shard, String service) throws ApiException
shard - The shard tag for a spark job, which differentiates jobs within the same service
that have different resource needs (required)service - The service name for a spark job (required)ApiException - if fails to make API callpublic CompletableFuture<RecommendationDocument> getSPARecommendationsWithShardAsync(String shard, String service)
shard - The shard tag for a spark job, which differentiates jobs within the same service
that have different resource needs (required)service - The service name for a spark job (required)public RecommendationDocument getSPARecommendationsWithShard(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) throws ApiException
shard - The shard tag for a spark job, which differentiates jobs within the same service
that have different resource needs (required)service - The service name for a spark job (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<RecommendationDocument> getSPARecommendationsWithShardAsync(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters)
shard - The shard tag for a spark job, which differentiates jobs within the same service
that have different resource needs (required)service - The service name for a spark job (required)parameters - Optional parameters for the request.public ApiResponse<RecommendationDocument> getSPARecommendationsWithShardWithHttpInfo(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) throws ApiException
shard - The shard tag for a spark job, which differentiates jobs within the same service
that have different resource needs (required)service - The service name for a spark job (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 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RecommendationDocument>> getSPARecommendationsWithShardWithHttpInfoAsync(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters)
shard - The shard tag for a spark job, which differentiates jobs within the same service
that have different resource needs (required)service - The service name for a spark job (required)parameters - Optional parameters for the request.Copyright © 2026. All rights reserved.