Class: Aws::AutoScaling::Types::TargetTrackingConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::AutoScaling::Types::TargetTrackingConfiguration
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-autoscaling/types.rb
Overview
Note:
When making an API call, you may pass TargetTrackingConfiguration data as a hash:
{
predefined_metric_specification: {
predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
resource_label: "XmlStringMaxLen1023",
},
customized_metric_specification: {
metric_name: "MetricName", # required
namespace: "MetricNamespace", # required
dimensions: [
{
name: "MetricDimensionName", # required
value: "MetricDimensionValue", # required
},
],
statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
unit: "MetricUnit",
},
target_value: 1.0, # required
disable_scale_in: false,
}
Represents a target tracking policy configuration.
Instance Attribute Summary collapse
-
#customized_metric_specification ⇒ Types::CustomizedMetricSpecification
A customized metric.
-
#disable_scale_in ⇒ Boolean
Indicates whether scaling in by the target tracking policy is disabled.
-
#predefined_metric_specification ⇒ Types::PredefinedMetricSpecification
A predefined metric.
-
#target_value ⇒ Float
The target value for the metric.
Instance Attribute Details
#customized_metric_specification ⇒ Types::CustomizedMetricSpecification
A customized metric.
4539 4540 4541 4542 4543 4544 4545 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 4539 class TargetTrackingConfiguration < Struct.new( :predefined_metric_specification, :customized_metric_specification, :target_value, :disable_scale_in) include Aws::Structure end |
#disable_scale_in ⇒ Boolean
Indicates whether scaling in by the target tracking policy is disabled. If scaling in is disabled, the target tracking policy doesn’t remove instances from the Auto Scaling group. Otherwise, the target tracking policy can remove instances from the Auto Scaling group. The default is disabled.
4539 4540 4541 4542 4543 4544 4545 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 4539 class TargetTrackingConfiguration < Struct.new( :predefined_metric_specification, :customized_metric_specification, :target_value, :disable_scale_in) include Aws::Structure end |
#predefined_metric_specification ⇒ Types::PredefinedMetricSpecification
A predefined metric. You can specify either a predefined metric or a customized metric.
4539 4540 4541 4542 4543 4544 4545 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 4539 class TargetTrackingConfiguration < Struct.new( :predefined_metric_specification, :customized_metric_specification, :target_value, :disable_scale_in) include Aws::Structure end |
#target_value ⇒ Float
The target value for the metric.
4539 4540 4541 4542 4543 4544 4545 |
# File 'lib/aws-sdk-autoscaling/types.rb', line 4539 class TargetTrackingConfiguration < Struct.new( :predefined_metric_specification, :customized_metric_specification, :target_value, :disable_scale_in) include Aws::Structure end |