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 |
Synopsis
- data LambdaFunctionUtilizationMetric = LambdaFunctionUtilizationMetric' {}
- newLambdaFunctionUtilizationMetric :: LambdaFunctionUtilizationMetric
- lambdaFunctionUtilizationMetric_value :: Lens' LambdaFunctionUtilizationMetric (Maybe Double)
- lambdaFunctionUtilizationMetric_name :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricName)
- lambdaFunctionUtilizationMetric_statistic :: Lens' LambdaFunctionUtilizationMetric (Maybe LambdaFunctionMetricStatistic)
Documentation
data LambdaFunctionUtilizationMetric Source #
Describes a utilization metric of an Lambda function.
See: newLambdaFunctionUtilizationMetric
smart constructor.
LambdaFunctionUtilizationMetric' | |
|
Instances
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_value :: Lens' LambdaFunctionUtilizationMetric (Maybe Double) Source #
The value of the utilization metric.
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.