amazonka-compute-optimizer-2.0: Amazon Compute Optimizer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

Description

 
Synopsis

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.

Constructors

ECSServiceUtilizationMetric' 

Fields

  • name :: Maybe ECSServiceMetricName

    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.
  • statistic :: Maybe ECSServiceMetricStatistic

    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.

  • value :: Maybe Double

    The value of the utilization metric.

Instances

Instances details
FromJSON ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

Generic ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

Associated Types

type Rep ECSServiceUtilizationMetric :: Type -> Type #

Read ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

Show ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

NFData ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

Eq ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

Hashable ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

type Rep ECSServiceUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric

type Rep ECSServiceUtilizationMetric = D1 ('MetaData "ECSServiceUtilizationMetric" "Amazonka.ComputeOptimizer.Types.ECSServiceUtilizationMetric" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "ECSServiceUtilizationMetric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ECSServiceMetricName)) :*: (S1 ('MetaSel ('Just "statistic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ECSServiceMetricStatistic)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

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.