Class LambdaFunctionUtilizationMetric
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.LambdaFunctionUtilizationMetric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LambdaFunctionUtilizationMetric.Builder,LambdaFunctionUtilizationMetric>
@Generated("software.amazon.awssdk:codegen") public final class LambdaFunctionUtilizationMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LambdaFunctionUtilizationMetric.Builder,LambdaFunctionUtilizationMetric>
Describes a utilization metric of an Lambda function.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLambdaFunctionUtilizationMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LambdaFunctionUtilizationMetric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LambdaFunctionMetricNamename()The name of the utilization metric.StringnameAsString()The name of the utilization metric.List<SdkField<?>>sdkFields()static Class<? extends LambdaFunctionUtilizationMetric.Builder>serializableBuilderClass()LambdaFunctionMetricStatisticstatistic()The statistic of the utilization metric.StringstatisticAsString()The statistic of the utilization metric.LambdaFunctionUtilizationMetric.BuildertoBuilder()StringtoString()Returns a string representation of this object.Doublevalue()The value of the utilization metric.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final LambdaFunctionMetricName 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.
If the service returns an enum value that is not available in the current SDK version,
namewill returnLambdaFunctionMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- 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.
-
- See Also:
LambdaFunctionMetricName
-
-
nameAsString
public final String nameAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
namewill returnLambdaFunctionMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- 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.
-
- See Also:
LambdaFunctionMetricName
-
-
statistic
public final LambdaFunctionMetricStatistic statistic()
The statistic of the utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
Maximumstatistic, which is the highest value observed during the specified period.The Compute Optimizer console displays graphs for some utilization metrics using the
Averagestatistic, which is the value ofSum/SampleCountduring 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.If the service returns an enum value that is not available in the current SDK version,
statisticwill returnLambdaFunctionMetricStatistic.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatisticAsString().- Returns:
- The statistic of the utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
Maximumstatistic, which is the highest value observed during the specified period.The Compute Optimizer console displays graphs for some utilization metrics using the
Averagestatistic, which is the value ofSum/SampleCountduring 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. - See Also:
LambdaFunctionMetricStatistic
-
statisticAsString
public final String statisticAsString()
The statistic of the utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
Maximumstatistic, which is the highest value observed during the specified period.The Compute Optimizer console displays graphs for some utilization metrics using the
Averagestatistic, which is the value ofSum/SampleCountduring 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.If the service returns an enum value that is not available in the current SDK version,
statisticwill returnLambdaFunctionMetricStatistic.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatisticAsString().- Returns:
- The statistic of the utilization metric.
The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
Maximumstatistic, which is the highest value observed during the specified period.The Compute Optimizer console displays graphs for some utilization metrics using the
Averagestatistic, which is the value ofSum/SampleCountduring 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. - See Also:
LambdaFunctionMetricStatistic
-
value
public final Double value()
The value of the utilization metric.
- Returns:
- The value of the utilization metric.
-
toBuilder
public LambdaFunctionUtilizationMetric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LambdaFunctionUtilizationMetric.Builder,LambdaFunctionUtilizationMetric>
-
builder
public static LambdaFunctionUtilizationMetric.Builder builder()
-
serializableBuilderClass
public static Class<? extends LambdaFunctionUtilizationMetric.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-