Class TargetTrackingMetricStat
- java.lang.Object
-
- software.amazon.awssdk.services.autoscaling.model.TargetTrackingMetricStat
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
@Generated("software.amazon.awssdk:codegen") public final class TargetTrackingMetricStat extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
This structure defines the CloudWatch metric to return, along with the statistic and unit.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetTrackingMetricStat.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetTrackingMetricStat.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Metricmetric()The metric to use.Integerperiod()The period of the metric in seconds.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TargetTrackingMetricStat.Builder>serializableBuilderClass()Stringstat()The statistic to return.TargetTrackingMetricStat.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringunit()The unit to use for the returned data points.-
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
-
metric
public final Metric metric()
The metric to use.
- Returns:
- The metric to use.
-
stat
public final String stat()
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is
Average.- Returns:
- The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of
valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metric for scaling is
Average.
-
unit
public final String unit()
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
- Returns:
- The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
-
period
public final Integer period()
The period of the metric in seconds. The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see Create a target tracking policy using high-resolution metrics for faster response.
- Returns:
- The period of the metric in seconds. The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see Create a target tracking policy using high-resolution metrics for faster response.
-
toBuilder
public TargetTrackingMetricStat.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetTrackingMetricStat.Builder,TargetTrackingMetricStat>
-
builder
public static TargetTrackingMetricStat.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetTrackingMetricStat.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
-
-