| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.ComputeOptimizer.Types.InstanceRecommendation
Description
Synopsis
- data InstanceRecommendation = InstanceRecommendation' {
- instanceArn :: Maybe Text
- finding :: Maybe Finding
- currentInstanceType :: Maybe Text
- lastRefreshTimestamp :: Maybe POSIX
- accountId :: Maybe Text
- findingReasonCodes :: Maybe [InstanceRecommendationFindingReasonCode]
- recommendationSources :: Maybe [RecommendationSource]
- utilizationMetrics :: Maybe [UtilizationMetric]
- instanceName :: Maybe Text
- recommendationOptions :: Maybe [InstanceRecommendationOption]
- lookBackPeriodInDays :: Maybe Double
- newInstanceRecommendation :: InstanceRecommendation
- instanceRecommendation_instanceArn :: Lens' InstanceRecommendation (Maybe Text)
- instanceRecommendation_finding :: Lens' InstanceRecommendation (Maybe Finding)
- instanceRecommendation_currentInstanceType :: Lens' InstanceRecommendation (Maybe Text)
- instanceRecommendation_lastRefreshTimestamp :: Lens' InstanceRecommendation (Maybe UTCTime)
- instanceRecommendation_accountId :: Lens' InstanceRecommendation (Maybe Text)
- instanceRecommendation_findingReasonCodes :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationFindingReasonCode])
- instanceRecommendation_recommendationSources :: Lens' InstanceRecommendation (Maybe [RecommendationSource])
- instanceRecommendation_utilizationMetrics :: Lens' InstanceRecommendation (Maybe [UtilizationMetric])
- instanceRecommendation_instanceName :: Lens' InstanceRecommendation (Maybe Text)
- instanceRecommendation_recommendationOptions :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationOption])
- instanceRecommendation_lookBackPeriodInDays :: Lens' InstanceRecommendation (Maybe Double)
Documentation
data InstanceRecommendation Source #
Describes an Amazon EC2 instance recommendation.
See: newInstanceRecommendation smart constructor.
Constructors
| InstanceRecommendation' | |
Fields
| |
Instances
newInstanceRecommendation :: InstanceRecommendation Source #
Create a value of InstanceRecommendation with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:instanceArn:InstanceRecommendation', instanceRecommendation_instanceArn - The Amazon Resource Name (ARN) of the current instance.
$sel:finding:InstanceRecommendation', instanceRecommendation_finding - The finding classification of 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. For optimized resources, Compute Optimizer might recommend a new generation instance type.
$sel:currentInstanceType:InstanceRecommendation', instanceRecommendation_currentInstanceType - The instance type of the current instance.
$sel:lastRefreshTimestamp:InstanceRecommendation', instanceRecommendation_lastRefreshTimestamp - The timestamp of when the instance recommendation was last refreshed.
$sel:accountId:InstanceRecommendation', instanceRecommendation_accountId - The Amazon Web Services account ID of the instance.
$sel:findingReasonCodes:InstanceRecommendation', instanceRecommendation_findingReasonCodes - The reason for the finding classification of the instance.
Finding reason codes for instances include:
CPUOverprovisioned— The instance’s CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilizationmetric of the current instance during the look-back period.CPUUnderprovisioned— The instance’s CPU configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better CPU performance. This is identified by analyzing theCPUUtilizationmetric of the current instance during the look-back period.MemoryOverprovisioned— The instance’s memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing the memory utilization metric of the current instance during the look-back period.MemoryUnderprovisioned— The instance’s memory configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better memory performance. This is identified by analyzing the memory utilization metric of the current instance during the look-back period.Memory utilization is analyzed only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling memory utilization with the Amazon CloudWatch Agent in the Compute Optimizer User Guide. On Linux instances, Compute Optimizer analyses the
mem_used_percentmetric in theCWAgentnamespace, or the legacyMemoryUtilizationmetric in theSystem/Linuxnamespace. On Windows instances, Compute Optimizer analyses theMemory % Committed Bytes In Usemetric in theCWAgentnamespace.EBSThroughputOverprovisioned— The instance’s EBS throughput configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theVolumeReadOpsandVolumeWriteOpsmetrics of EBS volumes attached to the current instance during the look-back period.EBSThroughputUnderprovisioned— The instance’s EBS throughput configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better EBS throughput performance. This is identified by analyzing theVolumeReadOpsandVolumeWriteOpsmetrics of EBS volumes attached to the current instance during the look-back period.EBSIOPSOverprovisioned— The instance’s EBS IOPS configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theVolumeReadBytesandVolumeWriteBytesmetric of EBS volumes attached to the current instance during the look-back period.EBSIOPSUnderprovisioned— The instance’s EBS IOPS configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better EBS IOPS performance. This is identified by analyzing theVolumeReadBytesandVolumeWriteBytesmetric of EBS volumes attached to the current instance during the look-back period.NetworkBandwidthOverprovisioned— The instance’s network bandwidth configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theNetworkInandNetworkOutmetrics of the current instance during the look-back period.NetworkBandwidthUnderprovisioned— The instance’s network bandwidth configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better network bandwidth performance. This is identified by analyzing theNetworkInandNetworkOutmetrics of the current instance during the look-back period. This finding reason happens when theNetworkInorNetworkOutperformance of an instance is impacted.NetworkPPSOverprovisioned— The instance’s network PPS (packets per second) configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theNetworkPacketsInandNetworkPacketsInmetrics of the current instance during the look-back period.NetworkPPSUnderprovisioned— The instance’s network PPS (packets per second) configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better network PPS performance. This is identified by analyzing theNetworkPacketsInandNetworkPacketsInmetrics of the current instance during the look-back period.DiskIOPSOverprovisioned— The instance’s disk IOPS configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theDiskReadOpsandDiskWriteOpsmetrics of the current instance during the look-back period.DiskIOPSUnderprovisioned— The instance’s disk IOPS configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better disk IOPS performance. This is identified by analyzing theDiskReadOpsandDiskWriteOpsmetrics of the current instance during the look-back period.DiskThroughputOverprovisioned— The instance’s disk throughput configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theDiskReadBytesandDiskWriteBytesmetrics of the current instance during the look-back period.DiskThroughputUnderprovisioned— The instance’s disk throughput configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better disk throughput performance. This is identified by analyzing theDiskReadBytesandDiskWriteBytesmetrics of the current instance during the look-back period.
For more information about instance metrics, see List the available CloudWatch metrics for your instances in the Amazon Elastic Compute Cloud User Guide. For more information about EBS volume metrics, see Amazon CloudWatch metrics for Amazon EBS in the Amazon Elastic Compute Cloud User Guide.
$sel:recommendationSources:InstanceRecommendation', instanceRecommendation_recommendationSources - An array of objects that describe the source resource of the
recommendation.
$sel:utilizationMetrics:InstanceRecommendation', instanceRecommendation_utilizationMetrics - An array of objects that describe the utilization metrics of the
instance.
$sel:instanceName:InstanceRecommendation', instanceRecommendation_instanceName - The name of the current instance.
$sel:recommendationOptions:InstanceRecommendation', instanceRecommendation_recommendationOptions - An array of objects that describe the recommendation options for the
instance.
$sel:lookBackPeriodInDays:InstanceRecommendation', instanceRecommendation_lookBackPeriodInDays - The number of days for which utilization metrics were analyzed for the
instance.
instanceRecommendation_instanceArn :: Lens' InstanceRecommendation (Maybe Text) Source #
The Amazon Resource Name (ARN) of the current instance.
instanceRecommendation_finding :: Lens' InstanceRecommendation (Maybe Finding) Source #
The finding classification of 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. For optimized resources, Compute Optimizer might recommend a new generation instance type.
instanceRecommendation_currentInstanceType :: Lens' InstanceRecommendation (Maybe Text) Source #
The instance type of the current instance.
instanceRecommendation_lastRefreshTimestamp :: Lens' InstanceRecommendation (Maybe UTCTime) Source #
The timestamp of when the instance recommendation was last refreshed.
instanceRecommendation_accountId :: Lens' InstanceRecommendation (Maybe Text) Source #
The Amazon Web Services account ID of the instance.
instanceRecommendation_findingReasonCodes :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationFindingReasonCode]) Source #
The reason for the finding classification of the instance.
Finding reason codes for instances include:
CPUOverprovisioned— The instance’s CPU configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theCPUUtilizationmetric of the current instance during the look-back period.CPUUnderprovisioned— The instance’s CPU configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better CPU performance. This is identified by analyzing theCPUUtilizationmetric of the current instance during the look-back period.MemoryOverprovisioned— The instance’s memory configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing the memory utilization metric of the current instance during the look-back period.MemoryUnderprovisioned— The instance’s memory configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better memory performance. This is identified by analyzing the memory utilization metric of the current instance during the look-back period.Memory utilization is analyzed only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling memory utilization with the Amazon CloudWatch Agent in the Compute Optimizer User Guide. On Linux instances, Compute Optimizer analyses the
mem_used_percentmetric in theCWAgentnamespace, or the legacyMemoryUtilizationmetric in theSystem/Linuxnamespace. On Windows instances, Compute Optimizer analyses theMemory % Committed Bytes In Usemetric in theCWAgentnamespace.EBSThroughputOverprovisioned— The instance’s EBS throughput configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theVolumeReadOpsandVolumeWriteOpsmetrics of EBS volumes attached to the current instance during the look-back period.EBSThroughputUnderprovisioned— The instance’s EBS throughput configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better EBS throughput performance. This is identified by analyzing theVolumeReadOpsandVolumeWriteOpsmetrics of EBS volumes attached to the current instance during the look-back period.EBSIOPSOverprovisioned— The instance’s EBS IOPS configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theVolumeReadBytesandVolumeWriteBytesmetric of EBS volumes attached to the current instance during the look-back period.EBSIOPSUnderprovisioned— The instance’s EBS IOPS configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better EBS IOPS performance. This is identified by analyzing theVolumeReadBytesandVolumeWriteBytesmetric of EBS volumes attached to the current instance during the look-back period.NetworkBandwidthOverprovisioned— The instance’s network bandwidth configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theNetworkInandNetworkOutmetrics of the current instance during the look-back period.NetworkBandwidthUnderprovisioned— The instance’s network bandwidth configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better network bandwidth performance. This is identified by analyzing theNetworkInandNetworkOutmetrics of the current instance during the look-back period. This finding reason happens when theNetworkInorNetworkOutperformance of an instance is impacted.NetworkPPSOverprovisioned— The instance’s network PPS (packets per second) configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theNetworkPacketsInandNetworkPacketsInmetrics of the current instance during the look-back period.NetworkPPSUnderprovisioned— The instance’s network PPS (packets per second) configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better network PPS performance. This is identified by analyzing theNetworkPacketsInandNetworkPacketsInmetrics of the current instance during the look-back period.DiskIOPSOverprovisioned— The instance’s disk IOPS configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theDiskReadOpsandDiskWriteOpsmetrics of the current instance during the look-back period.DiskIOPSUnderprovisioned— The instance’s disk IOPS configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better disk IOPS performance. This is identified by analyzing theDiskReadOpsandDiskWriteOpsmetrics of the current instance during the look-back period.DiskThroughputOverprovisioned— The instance’s disk throughput configuration can be sized down while still meeting the performance requirements of your workload. This is identified by analyzing theDiskReadBytesandDiskWriteBytesmetrics of the current instance during the look-back period.DiskThroughputUnderprovisioned— The instance’s disk throughput configuration doesn't meet the performance requirements of your workload and there is an alternative instance type that provides better disk throughput performance. This is identified by analyzing theDiskReadBytesandDiskWriteBytesmetrics of the current instance during the look-back period.
For more information about instance metrics, see List the available CloudWatch metrics for your instances in the Amazon Elastic Compute Cloud User Guide. For more information about EBS volume metrics, see Amazon CloudWatch metrics for Amazon EBS in the Amazon Elastic Compute Cloud User Guide.
instanceRecommendation_recommendationSources :: Lens' InstanceRecommendation (Maybe [RecommendationSource]) Source #
An array of objects that describe the source resource of the recommendation.
instanceRecommendation_utilizationMetrics :: Lens' InstanceRecommendation (Maybe [UtilizationMetric]) Source #
An array of objects that describe the utilization metrics of the instance.
instanceRecommendation_instanceName :: Lens' InstanceRecommendation (Maybe Text) Source #
The name of the current instance.
instanceRecommendation_recommendationOptions :: Lens' InstanceRecommendation (Maybe [InstanceRecommendationOption]) Source #
An array of objects that describe the recommendation options for the instance.
instanceRecommendation_lookBackPeriodInDays :: Lens' InstanceRecommendation (Maybe Double) Source #
The number of days for which utilization metrics were analyzed for the instance.