ec2_recommendation_projected_metrics
Creates, updates, deletes, gets or lists an ec2_recommendation_projected_metrics resource.
Overview
| Name | ec2_recommendation_projected_metrics |
| Type | Resource |
| Id | aws.compute_optimizer.ec2_recommendation_projected_metrics |
Fields
The following fields are returned by SELECT queries:
- get_ec2_recommendation_projected_metrics
| Name | Datatype | Description |
|---|---|---|
recommended_option_projected_metrics | array | An array of objects that describes projected metrics. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_ec2_recommendation_projected_metrics | select | region | Returns the projected utilization metrics of Amazon EC2 instance recommendations. The Cpu and Memory metrics are the only projected utilization metrics returned when you run this action. Additionally, the Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent. |
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 | AWS region (default: us-east-1) |
SELECT examples
- get_ec2_recommendation_projected_metrics
Returns the projected utilization metrics of Amazon EC2 instance recommendations. The Cpu and Memory metrics are the only projected utilization metrics returned when you run this action. Additionally, the Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
SELECT
recommended_option_projected_metrics
FROM aws.compute_optimizer.ec2_recommendation_projected_metrics
WHERE region = '{{ region }}' -- required
;