ECSServiceRecommendation
¶
Source code in docs_src/capo_compute_optimizer/types/ecs_service_recommendation.py
account_id
instance-attribute
¶
account_id: NotRequired[AccountId]
The Amazon Web Services account ID of the Amazon ECS service.
current_performance_risk
instance-attribute
¶
current_performance_risk: NotRequired[CurrentPerformanceRisk]
The risk of the current Amazon ECS service not meeting the performance needs of its workloads. The higher the risk, the more likely the current service can't meet the performance requirements of its workload.
current_service_configuration
instance-attribute
¶
current_service_configuration: NotRequired[ServiceConfiguration]
The configuration of the current Amazon ECS service.
effective_recommendation_preferences
instance-attribute
¶
effective_recommendation_preferences: NotRequired[ECSEffectiveRecommendationPreferences]
Describes the effective recommendation preferences for Amazon ECS services.
finding
instance-attribute
¶
finding: NotRequired[ECSServiceRecommendationFinding]
The finding classification of an Amazon ECS service.
Findings for Amazon ECS services include:
-
Underprovisioned— When Compute Optimizer detects that there’s not enough memory or CPU, an Amazon ECS service is considered under-provisioned. An under-provisioned service might result in poor application performance. -
Overprovisioned— When Compute Optimizer detects that there’s excessive memory or CPU, an Amazon ECS service is considered over-provisioned. An over-provisioned service might result in additional infrastructure costs. -
Optimized— When both the CPU and memory of your Amazon ECS service meet the performance requirements of your workload, the service is considered optimized.
finding_reason_codes
instance-attribute
¶
finding_reason_codes: NotRequired[ECSServiceRecommendationFindingReasonCodes]
The reason for the finding classification of an Amazon ECS service.
Finding reason codes for Amazon ECS services include:
-
CPUUnderprovisioned— The service CPU configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theCPUUtilizationmetric of the current service during the look-back period. -
CPUOverprovisioned— The service CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilizationmetric of the current service during the look-back period. -
MemoryUnderprovisioned— The service memory configuration can be sized up to enhance the performance of your workload. This is identified by analyzing theMemoryUtilizationmetric of the current service during the look-back period. -
MemoryOverprovisioned— The service memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theMemoryUtilizationmetric of the current service during the look-back period.
last_refresh_timestamp
instance-attribute
¶
last_refresh_timestamp: NotRequired[LastRefreshTimestamp]
The timestamp of when the Amazon ECS service recommendation was last generated.
launch_type
instance-attribute
¶
launch_type: NotRequired[ECSServiceLaunchType]
The launch type the Amazon ECS service is using.
Compute Optimizer only supports the Fargate launch type.
lookback_period_in_days
instance-attribute
¶
lookback_period_in_days: LookBackPeriodInDays
The number of days the Amazon ECS service utilization metrics were analyzed.
service_arn
instance-attribute
¶
service_arn: NotRequired[ServiceArn]
The Amazon Resource Name (ARN) of the current Amazon ECS service.
The following is the format of the ARN:
arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
service_recommendation_options
instance-attribute
¶
service_recommendation_options: NotRequired[ECSServiceRecommendationOptions]
An array of objects that describe the recommendation options for the Amazon ECS service.
tags
instance-attribute
¶
tags: NotRequired[Tags]
A list of tags assigned to your Amazon ECS service recommendations.
utilization_metrics
instance-attribute
¶
utilization_metrics: NotRequired[ECSServiceUtilizationMetrics]
An array of objects that describe the utilization metrics of the Amazon ECS service.