Class: AWSCDK::Autoscaling::GroupMetric
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Autoscaling::GroupMetric
- Defined in:
- autoscaling/group_metric.rb
Overview
Group metrics that an Auto Scaling group sends to Amazon CloudWatch.
Class Method Summary collapse
-
.DESIRED_CAPACITY ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that the Auto Scaling group attempts to maintain.
-
.IN_SERVICE_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are running as part of the Auto Scaling group This metric does not include instances that are pending or terminating.
- .jsii_overridable_methods ⇒ Object
-
.MAX_SIZE ⇒ AWSCDK::Autoscaling::GroupMetric
The maximum size of the Auto Scaling group.
-
.MIN_SIZE ⇒ AWSCDK::Autoscaling::GroupMetric
The minimum size of the Auto Scaling group.
-
.PENDING_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are pending A pending instance is not yet in service, this metric does not include instances that are in service or terminating.
-
.STANDBY_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are in a Standby state Instances in this state are still running but are not actively in service.
-
.TERMINATING_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are in the process of terminating This metric does not include instances that are in service or pending.
-
.TOTAL_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The total number of instances in the Auto Scaling group This metric identifies the number of instances that are in service, pending, and terminating.
Instance Method Summary collapse
-
#initialize(name) ⇒ GroupMetric
constructor
A new instance of GroupMetric.
-
#name ⇒ String
The name of the group metric.
Constructor Details
#initialize(name) ⇒ GroupMetric
Returns a new instance of GroupMetric.
9 10 11 12 |
# File 'autoscaling/group_metric.rb', line 9 def initialize(name) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Object.instance_method(:initialize).bind(self).call(name) end |
Class Method Details
.DESIRED_CAPACITY ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that the Auto Scaling group attempts to maintain.
23 24 25 |
# File 'autoscaling/group_metric.rb', line 23 def self.DESIRED_CAPACITY() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "DESIRED_CAPACITY") end |
.IN_SERVICE_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are running as part of the Auto Scaling group This metric does not include instances that are pending or terminating.
30 31 32 |
# File 'autoscaling/group_metric.rb', line 30 def self.IN_SERVICE_INSTANCES() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "IN_SERVICE_INSTANCES") end |
.jsii_overridable_methods ⇒ Object
14 15 16 17 18 |
# File 'autoscaling/group_metric.rb', line 14 def self.jsii_overridable_methods { :name => { kind: :property, name: "name", is_optional: false }, } end |
.MAX_SIZE ⇒ AWSCDK::Autoscaling::GroupMetric
The maximum size of the Auto Scaling group.
37 38 39 |
# File 'autoscaling/group_metric.rb', line 37 def self.MAX_SIZE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "MAX_SIZE") end |
.MIN_SIZE ⇒ AWSCDK::Autoscaling::GroupMetric
The minimum size of the Auto Scaling group.
44 45 46 |
# File 'autoscaling/group_metric.rb', line 44 def self.MIN_SIZE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "MIN_SIZE") end |
.PENDING_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are pending A pending instance is not yet in service, this metric does not include instances that are in service or terminating.
51 52 53 |
# File 'autoscaling/group_metric.rb', line 51 def self.PENDING_INSTANCES() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "PENDING_INSTANCES") end |
.STANDBY_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are in a Standby state Instances in this state are still running but are not actively in service.
58 59 60 |
# File 'autoscaling/group_metric.rb', line 58 def self.STANDBY_INSTANCES() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "STANDBY_INSTANCES") end |
.TERMINATING_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The number of instances that are in the process of terminating This metric does not include instances that are in service or pending.
65 66 67 |
# File 'autoscaling/group_metric.rb', line 65 def self.TERMINATING_INSTANCES() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "TERMINATING_INSTANCES") end |
.TOTAL_INSTANCES ⇒ AWSCDK::Autoscaling::GroupMetric
The total number of instances in the Auto Scaling group This metric identifies the number of instances that are in service, pending, and terminating.
72 73 74 |
# File 'autoscaling/group_metric.rb', line 72 def self.TOTAL_INSTANCES() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_autoscaling.GroupMetric", "TOTAL_INSTANCES") end |
Instance Method Details
#name ⇒ String
The name of the group metric.
79 80 81 |
# File 'autoscaling/group_metric.rb', line 79 def name() jsii_get_property("name") end |