libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

Description

 
Synopsis

Documentation

data LambdaFunctionUtilizationMetric Source #

Describes a utilization metric of an Lambda function.

See: newLambdaFunctionUtilizationMetric smart constructor.

Constructors

LambdaFunctionUtilizationMetric' 

Fields

  • value :: Maybe Double

    The value of the utilization metric.

  • name :: Maybe LambdaFunctionMetricName

    The name of the utilization metric.

    The following utilization metrics are available:

    • Duration - The amount of time that your function code spends processing an event.
    • Memory - The amount of memory used per invocation.
  • statistic :: Maybe LambdaFunctionMetricStatistic

    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.

Instances

Instances details
Eq LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

Read LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

Show LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

Generic LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

Associated Types

type Rep LambdaFunctionUtilizationMetric :: Type -> Type #

NFData LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

Hashable LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

FromJSON LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

type Rep LambdaFunctionUtilizationMetric Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric

type Rep LambdaFunctionUtilizationMetric = D1 ('MetaData "LambdaFunctionUtilizationMetric" "Amazonka.ComputeOptimizer.Types.LambdaFunctionUtilizationMetric" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "LambdaFunctionUtilizationMetric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaFunctionMetricName)) :*: S1 ('MetaSel ('Just "statistic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaFunctionMetricStatistic)))))

newLambdaFunctionUtilizationMetric :: LambdaFunctionUtilizationMetric Source #

Create a value of LambdaFunctionUtilizationMetric 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:value:LambdaFunctionUtilizationMetric', lambdaFunctionUtilizationMetric_value - The value of the utilization metric.

$sel:name:LambdaFunctionUtilizationMetric', lambdaFunctionUtilizationMetric_name - The name of the utilization metric.

The following utilization metrics are available:

  • Duration - The amount of time that your function code spends processing an event.
  • Memory - The amount of memory used per invocation.

$sel:statistic:LambdaFunctionUtilizationMetric', lambdaFunctionUtilizationMetric_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.

lambdaFunctionUtilizationMetric_name :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricName) Source #

The name of the utilization metric.

The following utilization metrics are available:

  • Duration - The amount of time that your function code spends processing an event.
  • Memory - The amount of memory used per invocation.

lambdaFunctionUtilizationMetric_statistic :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricStatistic) 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.