spa_recommendations
Creates, updates, deletes, gets or lists a spa_recommendations resource.
Overview
| Name | spa_recommendations | 
| Type | Resource | 
| Id | datadog.infrastructure.spa_recommendations | 
Fields
The following fields are returned by SELECT queries:
- get_sparecommendations
| Name | Datatype | Description | 
|---|---|---|
| id | string | Resource identifier for the recommendation. Optional in responses. | 
| attributes | object | Attributes of the SPA Recommendation resource. Contains recommendations for both driver and executor components. | 
| type | string | JSON:API resource type for Spark Pod Autosizing recommendations. Identifies the Recommendation resource returned by SPA. (default: recommendation, example: recommendation) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_sparecommendations | select | shard,service,region | 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
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description | 
|---|---|---|
| region | string | (default: datadoghq.com) | 
| service | string | The service name for a spark job | 
| shard | string | The shard tag for a spark job, which differentiates jobs within the same service that have different resource needs | 
SELECT examples
- get_sparecommendations
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.
SELECT
id,
attributes,
type
FROM datadog.infrastructure.spa_recommendations
WHERE shard = '{{ shard }}' -- required
AND service = '{{ service }}' -- required
AND region = '{{ region }}' -- required
;