Last chance! 50% off unlimited learning
Sale ends in
Disables group metrics for the specified Auto Scaling group.
autoscaling_disable_metrics_collection(AutoScalingGroupName, Metrics)
[required] The name of the Auto Scaling group.
One or more of the following metrics. If you omit this parameter, all metrics are disabled.
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
svc$disable_metrics_collection( AutoScalingGroupName = "string", Metrics = list( "string" ) )
# NOT RUN {
# This example disables collecting data for the GroupDesiredCapacity
# metric for the specified Auto Scaling group.
# }
# NOT RUN {
svc$disable_metrics_collection(
AutoScalingGroupName = "my-auto-scaling-group",
Metrics = list(
"GroupDesiredCapacity"
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab