Struct aws_sdk_computeoptimizer::client::fluent_builders::GetEC2RecommendationProjectedMetrics [−][src]
pub struct GetEC2RecommendationProjectedMetrics<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to GetEC2RecommendationProjectedMetrics
.
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.
Implementations
impl<C, M, R> GetEC2RecommendationProjectedMetrics<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetEC2RecommendationProjectedMetrics<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetEc2RecommendationProjectedMetricsOutput, SdkError<GetEC2RecommendationProjectedMetricsError>> where
R::Policy: SmithyRetryPolicy<GetEc2RecommendationProjectedMetricsInputOperationOutputAlias, GetEc2RecommendationProjectedMetricsOutput, GetEC2RecommendationProjectedMetricsError, GetEc2RecommendationProjectedMetricsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetEc2RecommendationProjectedMetricsOutput, SdkError<GetEC2RecommendationProjectedMetricsError>> where
R::Policy: SmithyRetryPolicy<GetEc2RecommendationProjectedMetricsInputOperationOutputAlias, GetEc2RecommendationProjectedMetricsOutput, GetEC2RecommendationProjectedMetricsError, GetEc2RecommendationProjectedMetricsInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.
The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.
The statistic of the projected metrics.
The statistic of the projected metrics.
The granularity, in seconds, of the projected metrics data points.
The granularity, in seconds, of the projected metrics data points.
The timestamp of the first projected metrics data point to return.
The timestamp of the first projected metrics data point to return.
The timestamp of the last projected metrics data point to return.
The timestamp of the last projected metrics data point to return.
An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.
An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for GetEC2RecommendationProjectedMetrics<C, M, R>
impl<C, M, R> Send for GetEC2RecommendationProjectedMetrics<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetEC2RecommendationProjectedMetrics<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetEC2RecommendationProjectedMetrics<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetEC2RecommendationProjectedMetrics<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more