Class ECSServiceUtilizationMetric
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.ECSServiceUtilizationMetric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ECSServiceUtilizationMetric.Builder,ECSServiceUtilizationMetric>
@Generated("software.amazon.awssdk:codegen") public final class ECSServiceUtilizationMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ECSServiceUtilizationMetric.Builder,ECSServiceUtilizationMetric>
Describes the utilization metric of an Amazon ECS service.
To determine the performance difference between your current Amazon ECS service and the recommended option, compare the utilization metric data of your service against its projected utilization metric data.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceECSServiceUtilizationMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ECSServiceUtilizationMetric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ECSServiceMetricNamename()The name of the utilization metric.StringnameAsString()The name of the utilization metric.List<SdkField<?>>sdkFields()static Class<? extends ECSServiceUtilizationMetric.Builder>serializableBuilderClass()ECSServiceMetricStatisticstatistic()The statistic of the utilization metric.StringstatisticAsString()The statistic of the utilization metric.ECSServiceUtilizationMetric.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 ECSServiceMetricName name()
The name of the utilization metric.
The following utilization metrics are available:
-
Cpu— The amount of CPU capacity that's used in the service. -
Memory— The amount of memory that's used in the service.
If the service returns an enum value that is not available in the current SDK version,
namewill returnECSServiceMetricName.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:
-
Cpu— The amount of CPU capacity that's used in the service. -
Memory— The amount of memory that's used in the service.
-
- See Also:
ECSServiceMetricName
-
-
nameAsString
public final String nameAsString()
The name of the utilization metric.
The following utilization metrics are available:
-
Cpu— The amount of CPU capacity that's used in the service. -
Memory— The amount of memory that's used in the service.
If the service returns an enum value that is not available in the current SDK version,
namewill returnECSServiceMetricName.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:
-
Cpu— The amount of CPU capacity that's used in the service. -
Memory— The amount of memory that's used in the service.
-
- See Also:
ECSServiceMetricName
-
-
statistic
public final ECSServiceMetricStatistic 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 returnECSServiceMetricStatistic.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:
ECSServiceMetricStatistic
-
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 returnECSServiceMetricStatistic.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:
ECSServiceMetricStatistic
-
value
public final Double value()
The value of the utilization metric.
- Returns:
- The value of the utilization metric.
-
toBuilder
public ECSServiceUtilizationMetric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ECSServiceUtilizationMetric.Builder,ECSServiceUtilizationMetric>
-
builder
public static ECSServiceUtilizationMetric.Builder builder()
-
serializableBuilderClass
public static Class<? extends ECSServiceUtilizationMetric.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.
-
-