Class IdleUtilizationMetric
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.IdleUtilizationMetric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IdleUtilizationMetric.Builder,IdleUtilizationMetric>
@Generated("software.amazon.awssdk:codegen") public final class IdleUtilizationMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IdleUtilizationMetric.Builder,IdleUtilizationMetric>
Describes the utilization metric of an idle resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIdleUtilizationMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdleUtilizationMetric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IdleMetricNamename()The name of the utilization metric.StringnameAsString()The name of the utilization metric.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends IdleUtilizationMetric.Builder>serializableBuilderClass()MetricStatisticstatistic()The statistic of the utilization metric.StringstatisticAsString()The statistic of the utilization metric.IdleUtilizationMetric.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 IdleMetricName name()
The name of the utilization metric.
If the service returns an enum value that is not available in the current SDK version,
namewill returnIdleMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the utilization metric.
- See Also:
IdleMetricName
-
nameAsString
public final String nameAsString()
The name of the utilization metric.
If the service returns an enum value that is not available in the current SDK version,
namewill returnIdleMetricName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the utilization metric.
- See Also:
IdleMetricName
-
statistic
public final MetricStatistic 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 returnMetricStatistic.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:
MetricStatistic
-
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 returnMetricStatistic.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:
MetricStatistic
-
value
public final Double value()
The value of the utilization metric.
- Returns:
- The value of the utilization metric.
-
toBuilder
public IdleUtilizationMetric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IdleUtilizationMetric.Builder,IdleUtilizationMetric>
-
builder
public static IdleUtilizationMetric.Builder builder()
-
serializableBuilderClass
public static Class<? extends IdleUtilizationMetric.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-