@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SpaApi extends Object
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient()
Get the API client.
|
RecommendationDocument |
getSPARecommendations(String shard,
String service)
Get SPA Recommendations.
|
CompletableFuture<RecommendationDocument> |
getSPARecommendationsAsync(String shard,
String service)
Get SPA Recommendations.
|
ApiResponse<RecommendationDocument> |
getSPARecommendationsWithHttpInfo(String shard,
String service)
Retrieve resource recommendations for a Spark job.
|
CompletableFuture<ApiResponse<RecommendationDocument>> |
getSPARecommendationsWithHttpInfoAsync(String shard,
String service)
Get SPA Recommendations.
|
void |
setApiClient(ApiClient apiClient)
Set the API client.
|
public SpaApi()
public SpaApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic RecommendationDocument getSPARecommendations(String shard, String service) throws ApiException
See getSPARecommendationsWithHttpInfo(java.lang.String, java.lang.String).
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> getSPARecommendationsAsync(String shard, String service)
See getSPARecommendationsWithHttpInfoAsync(java.lang.String, java.lang.String).
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 ApiResponse<RecommendationDocument> getSPARecommendationsWithHttpInfo(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 call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RecommendationDocument>> getSPARecommendationsWithHttpInfoAsync(String shard, String service)
See getSPARecommendationsWithHttpInfo(java.lang.String, java.lang.String).
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)Copyright © 2025. All rights reserved.