Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ECSServiceUtilizationMetric = ECSServiceUtilizationMetric' {}
- newECSServiceUtilizationMetric :: ECSServiceUtilizationMetric
- eCSServiceUtilizationMetric_name :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricName)
- eCSServiceUtilizationMetric_statistic :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricStatistic)
- eCSServiceUtilizationMetric_value :: Lens' ECSServiceUtilizationMetric (Maybe Double)
Documentation
data ECSServiceUtilizationMetric Source #
Describes the utilization metric of an Amazon ECS service.
To determine the performance difference between your current ECS service and the recommended option, compare the utilization metric data of your service against its projected utilization metric data.
See: newECSServiceUtilizationMetric
smart constructor.
ECSServiceUtilizationMetric' | |
|
Instances
newECSServiceUtilizationMetric :: ECSServiceUtilizationMetric Source #
Create a value of ECSServiceUtilizationMetric
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:name:ECSServiceUtilizationMetric'
, eCSServiceUtilizationMetric_name
- The name of the utilization metric.
The following utilization metrics are available:
Cpu
— The amount of CPU units that are used in the service.Memory
— The amount of memory that is used in the service.
$sel:statistic:ECSServiceUtilizationMetric'
, eCSServiceUtilizationMetric_statistic
- The statistic of the utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return
utilization metrics using only the Maximum
statistic, which is the
highest value observed during the specified period.
The Compute Optimizer console displays graphs for some utilization
metrics using the Average
statistic, which is the value of Sum
/
SampleCount
during the specified period. For more information, see
Viewing resource recommendations
in the Compute Optimizer User Guide. You can also get averaged
utilization metric data for your resources using Amazon CloudWatch. For
more information, see the
Amazon CloudWatch User Guide.
$sel:value:ECSServiceUtilizationMetric'
, eCSServiceUtilizationMetric_value
- The value of the utilization metric.
eCSServiceUtilizationMetric_name :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricName) Source #
The name of the utilization metric.
The following utilization metrics are available:
Cpu
— The amount of CPU units that are used in the service.Memory
— The amount of memory that is used in the service.
eCSServiceUtilizationMetric_statistic :: Lens' ECSServiceUtilizationMetric (Maybe ECSServiceMetricStatistic) Source #
The statistic of the utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return
utilization metrics using only the Maximum
statistic, which is the
highest value observed during the specified period.
The Compute Optimizer console displays graphs for some utilization
metrics using the Average
statistic, which is the value of Sum
/
SampleCount
during the specified period. For more information, see
Viewing resource recommendations
in the Compute Optimizer User Guide. You can also get averaged
utilization metric data for your resources using Amazon CloudWatch. For
more information, see the
Amazon CloudWatch User Guide.
eCSServiceUtilizationMetric_value :: Lens' ECSServiceUtilizationMetric (Maybe Double) Source #
The value of the utilization metric.