Package com.datadog.api.client.v2.api
Class SpaApi
java.lang.Object
com.datadog.api.client.v2.api.SpaApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SpaApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getSPARecommendations.static classManage optional parameters to getSPARecommendationsWithShard. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.getSPARecommendations(String service) Get SPA Recommendations.getSPARecommendations(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) Get SPA Recommendations.getSPARecommendationsAsync(String service) Get SPA Recommendations.getSPARecommendationsAsync(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) Get SPA Recommendations.getSPARecommendationsWithHttpInfo(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) This endpoint is currently experimental and restricted to Datadog internal use only.getSPARecommendationsWithHttpInfoAsync(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) Get SPA Recommendations.getSPARecommendationsWithShard(String shard, String service) Get SPA Recommendations with a shard parameter.getSPARecommendationsWithShard(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) Get SPA Recommendations with a shard parameter.getSPARecommendationsWithShardAsync(String shard, String service) Get SPA Recommendations with a shard parameter.getSPARecommendationsWithShardAsync(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) Get SPA Recommendations with a shard parameter.getSPARecommendationsWithShardWithHttpInfo(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) This endpoint is currently experimental and restricted to Datadog internal use only.getSPARecommendationsWithShardWithHttpInfoAsync(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) Get SPA Recommendations with a shard parameter.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
SpaApi
public SpaApi() -
SpaApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
getSPARecommendations
Get SPA Recommendations.- Parameters:
service- The service name for a spark job. (required)- Returns:
- RecommendationDocument
- Throws:
ApiException- if fails to make API call
-
getSPARecommendationsAsync
Get SPA Recommendations.- Parameters:
service- The service name for a spark job. (required)- Returns:
- CompletableFuture<RecommendationDocument>
-
getSPARecommendations
public RecommendationDocument getSPARecommendations(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) throws ApiException Get SPA Recommendations.- Parameters:
service- The service name for a spark job. (required)parameters- Optional parameters for the request.- Returns:
- RecommendationDocument
- Throws:
ApiException- if fails to make API call
-
getSPARecommendationsAsync
public CompletableFuture<RecommendationDocument> getSPARecommendationsAsync(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) Get SPA Recommendations.- Parameters:
service- The service name for a spark job. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<RecommendationDocument>
-
getSPARecommendationsWithHttpInfo
public ApiResponse<RecommendationDocument> getSPARecommendationsWithHttpInfo(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) throws ApiException This endpoint is currently experimental and restricted to Datadog internal use only. Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and SPA returns structured recommendations for driver and executor resources. The version with a shard should be preferred, where possible, as it gives more accurate results.- Parameters:
service- The service name for a spark job. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<RecommendationDocument>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
getSPARecommendationsWithHttpInfoAsync
public CompletableFuture<ApiResponse<RecommendationDocument>> getSPARecommendationsWithHttpInfoAsync(String service, SpaApi.GetSPARecommendationsOptionalParameters parameters) Get SPA Recommendations.- Parameters:
service- The service name for a spark job. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<RecommendationDocument>>
-
getSPARecommendationsWithShard
public RecommendationDocument getSPARecommendationsWithShard(String shard, String service) throws ApiException Get SPA Recommendations with a shard parameter.- 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)- Returns:
- RecommendationDocument
- Throws:
ApiException- if fails to make API call
-
getSPARecommendationsWithShardAsync
public CompletableFuture<RecommendationDocument> getSPARecommendationsWithShardAsync(String shard, String service) Get SPA Recommendations with a shard parameter.- 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)- Returns:
- CompletableFuture<RecommendationDocument>
-
getSPARecommendationsWithShard
public RecommendationDocument getSPARecommendationsWithShard(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) throws ApiException Get SPA Recommendations with a shard parameter.- 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.- Returns:
- RecommendationDocument
- Throws:
ApiException- if fails to make API call
-
getSPARecommendationsWithShardAsync
public CompletableFuture<RecommendationDocument> getSPARecommendationsWithShardAsync(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) Get SPA Recommendations with a shard parameter.- 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.- Returns:
- CompletableFuture<RecommendationDocument>
-
getSPARecommendationsWithShardWithHttpInfo
public ApiResponse<RecommendationDocument> getSPARecommendationsWithShardWithHttpInfo(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) throws ApiException This endpoint is currently experimental and restricted to Datadog internal use only. Retrieve resource recommendations for a Spark job. The caller (Spark Gateway or DJM UI) provides a service name and shard identifier, and SPA returns structured recommendations for driver and executor resources.- 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.- Returns:
- ApiResponse<RecommendationDocument>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
getSPARecommendationsWithShardWithHttpInfoAsync
public CompletableFuture<ApiResponse<RecommendationDocument>> getSPARecommendationsWithShardWithHttpInfoAsync(String shard, String service, SpaApi.GetSPARecommendationsWithShardOptionalParameters parameters) Get SPA Recommendations with a shard parameter.- 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.- Returns:
- CompletableFuture<ApiResponse<RecommendationDocument>>
-