Smaws_Client_ComputeOptimizer.GetEC2RecommendationProjectedMetricsReturns 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of Types.invalid_parameter_value_exception
| `MissingAuthenticationToken of Types.missing_authentication_token
| `OptInRequiredException of Types.opt_in_required_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_ec2_recommendation_projected_metrics_request ->
(Types.get_ec2_recommendation_projected_metrics_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `MissingAuthenticationToken of Types.missing_authentication_token
| `OptInRequiredException of Types.opt_in_required_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_ec2_recommendation_projected_metrics_request ->
(Types.get_ec2_recommendation_projected_metrics_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InternalServerException of Types.internal_server_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `MissingAuthenticationToken of Types.missing_authentication_token
| `OptInRequiredException of Types.opt_in_required_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result