pub struct InstanceRecommendation {
pub account_id: Option<String>,
pub current_instance_type: Option<String>,
pub finding: Option<String>,
pub instance_arn: Option<String>,
pub instance_name: Option<String>,
pub last_refresh_timestamp: Option<f64>,
pub look_back_period_in_days: Option<f64>,
pub recommendation_options: Option<Vec<InstanceRecommendationOption>>,
pub recommendation_sources: Option<Vec<RecommendationSource>>,
pub utilization_metrics: Option<Vec<UtilizationMetric>>,
}
Expand description
Describes an Amazon EC2 instance recommendation.
Fields§
§account_id: Option<String>
The AWS account ID of the instance.
current_instance_type: Option<String>
The instance type of the current instance.
finding: Option<String>
The finding classification for the instance.
Findings for instances include:
-
Underprovisioned
—An instance is considered under-provisioned when at least one specification of your instance, such as CPU, memory, or network, does not meet the performance requirements of your workload. Under-provisioned instances may lead to poor application performance. -
Overprovisioned
—An instance is considered over-provisioned when at least one specification of your instance, such as CPU, memory, or network, can be sized down while still meeting the performance requirements of your workload, and no specification is under-provisioned. Over-provisioned instances may lead to unnecessary infrastructure cost. -
Optimized
—An instance is considered optimized when all specifications of your instance, such as CPU, memory, and network, meet the performance requirements of your workload and is not over provisioned. An optimized instance runs your workloads with optimal performance and infrastructure cost. For optimized resources, AWS Compute Optimizer might recommend a new generation instance type.
The values that are returned might be UNDERPROVISIONED
, OVERPROVISIONED
, or OPTIMIZED
.
instance_arn: Option<String>
The Amazon Resource Name (ARN) of the current instance.
instance_name: Option<String>
The name of the current instance.
last_refresh_timestamp: Option<f64>
The time stamp of when the instance recommendation was last refreshed.
look_back_period_in_days: Option<f64>
The number of days for which utilization metrics were analyzed for the instance.
recommendation_options: Option<Vec<InstanceRecommendationOption>>
An array of objects that describe the recommendation options for the instance.
recommendation_sources: Option<Vec<RecommendationSource>>
An array of objects that describe the source resource of the recommendation.
utilization_metrics: Option<Vec<UtilizationMetric>>
An array of objects that describe the utilization metrics of the instance.
Trait Implementations§
Source§impl Clone for InstanceRecommendation
impl Clone for InstanceRecommendation
Source§fn clone(&self) -> InstanceRecommendation
fn clone(&self) -> InstanceRecommendation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more