GroupMetric
- class aws_cdk.aws_autoscaling.GroupMetric(name)
Bases:
object
Group metrics that an Auto Scaling group sends to Amazon CloudWatch.
- ExampleMetadata:
infused
Example:
# vpc: ec2.Vpc # instance_type: ec2.InstanceType # machine_image: ec2.IMachineImage # Enable monitoring of all group metrics autoscaling.AutoScalingGroup(self, "ASG", vpc=vpc, instance_type=instance_type, machine_image=machine_image, # ... group_metrics=[autoscaling.GroupMetrics.all()] ) # Enable monitoring for a subset of group metrics autoscaling.AutoScalingGroup(self, "ASG", vpc=vpc, instance_type=instance_type, machine_image=machine_image, # ... group_metrics=[autoscaling.GroupMetrics(autoscaling.GroupMetric.MIN_SIZE, autoscaling.GroupMetric.MAX_SIZE)] )
- Parameters:
name (
str
) –
Attributes
- DESIRED_CAPACITY = <aws_cdk.aws_autoscaling.GroupMetric object>
- IN_SERVICE_INSTANCES = <aws_cdk.aws_autoscaling.GroupMetric object>
- MAX_SIZE = <aws_cdk.aws_autoscaling.GroupMetric object>
- MIN_SIZE = <aws_cdk.aws_autoscaling.GroupMetric object>
- PENDING_INSTANCES = <aws_cdk.aws_autoscaling.GroupMetric object>
- STANDBY_INSTANCES = <aws_cdk.aws_autoscaling.GroupMetric object>
- TERMINATING_INSTANCES = <aws_cdk.aws_autoscaling.GroupMetric object>
- TOTAL_INSTANCES = <aws_cdk.aws_autoscaling.GroupMetric object>
- name
The name of the group metric.