Skip to main content

ec2_recommendation_projected_metrics

Creates, updates, deletes, gets or lists an ec2_recommendation_projected_metrics resource.

Overview​

Nameec2_recommendation_projected_metrics
TypeResource
Idaws.compute_optimizer.ec2_recommendation_projected_metrics

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
recommended_option_projected_metricsarrayAn array of objects that describes projected metrics.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ec2_recommendation_projected_metricsselectregionReturns 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

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
;