Class EBSUtilizationMetric
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.EBSUtilizationMetric
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EBSUtilizationMetric.Builder,EBSUtilizationMetric>
@Generated("software.amazon.awssdk:codegen") public final class EBSUtilizationMetric extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EBSUtilizationMetric.Builder,EBSUtilizationMetric>
Describes a utilization metric of an Amazon Elastic Block Store (Amazon EBS) volume.
Compare the utilization metric data of your resource against its projected utilization metric data to determine the performance difference between your current resource and the recommended option.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEBSUtilizationMetric.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EBSUtilizationMetric.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()EBSMetricNamename()The name of the utilization metric.StringnameAsString()The name of the utilization metric.List<SdkField<?>>sdkFields()static Class<? extends EBSUtilizationMetric.Builder>serializableBuilderClass()MetricStatisticstatistic()The statistic of the utilization metric.StringstatisticAsString()The statistic of the utilization metric.EBSUtilizationMetric.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 EBSMetricName name()
The name of the utilization metric.
The following utilization metrics are available:
-
VolumeReadOpsPerSecond- The completed read operations per second from the volume in a specified period of time.Unit: Count
-
VolumeWriteOpsPerSecond- The completed write operations per second to the volume in a specified period of time.Unit: Count
-
VolumeReadBytesPerSecond- The bytes read per second from the volume in a specified period of time.Unit: Bytes
-
VolumeWriteBytesPerSecond- The bytes written to the volume in a specified period of time.Unit: Bytes
If the service returns an enum value that is not available in the current SDK version,
namewill returnEBSMetricName.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:
-
VolumeReadOpsPerSecond- The completed read operations per second from the volume in a specified period of time.Unit: Count
-
VolumeWriteOpsPerSecond- The completed write operations per second to the volume in a specified period of time.Unit: Count
-
VolumeReadBytesPerSecond- The bytes read per second from the volume in a specified period of time.Unit: Bytes
-
VolumeWriteBytesPerSecond- The bytes written to the volume in a specified period of time.Unit: Bytes
-
- See Also:
EBSMetricName
-
-
nameAsString
public final String nameAsString()
The name of the utilization metric.
The following utilization metrics are available:
-
VolumeReadOpsPerSecond- The completed read operations per second from the volume in a specified period of time.Unit: Count
-
VolumeWriteOpsPerSecond- The completed write operations per second to the volume in a specified period of time.Unit: Count
-
VolumeReadBytesPerSecond- The bytes read per second from the volume in a specified period of time.Unit: Bytes
-
VolumeWriteBytesPerSecond- The bytes written to the volume in a specified period of time.Unit: Bytes
If the service returns an enum value that is not available in the current SDK version,
namewill returnEBSMetricName.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:
-
VolumeReadOpsPerSecond- The completed read operations per second from the volume in a specified period of time.Unit: Count
-
VolumeWriteOpsPerSecond- The completed write operations per second to the volume in a specified period of time.Unit: Count
-
VolumeReadBytesPerSecond- The bytes read per second from the volume in a specified period of time.Unit: Bytes
-
VolumeWriteBytesPerSecond- The bytes written to the volume in a specified period of time.Unit: Bytes
-
- See Also:
EBSMetricName
-
-
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 EBSUtilizationMetric.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EBSUtilizationMetric.Builder,EBSUtilizationMetric>
-
builder
public static EBSUtilizationMetric.Builder builder()
-
serializableBuilderClass
public static Class<? extends EBSUtilizationMetric.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.
-
-