You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::AutoScaling::Types::EnableMetricsCollectionQuery

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb

Overview

Note:

When making an API call, you may pass EnableMetricsCollectionQuery data as a hash:

{
  auto_scaling_group_name: "ResourceName", # required
  metrics: ["XmlStringMaxLen255"],
  granularity: "XmlStringMaxLen255", # required
}

Contains the parameters for EnableMetricsCollection.

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_group_nameString

The name or ARN of the Auto Scaling group.

Returns:

  • (String)


2141
2142
2143
2144
2145
2146
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2141

class EnableMetricsCollectionQuery < Struct.new(
  :auto_scaling_group_name,
  :metrics,
  :granularity)
  include Aws::Structure
end

#granularityString

The granularity to associate with the metrics to collect. The only valid value is 1Minute.

Returns:

  • (String)


2141
2142
2143
2144
2145
2146
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2141

class EnableMetricsCollectionQuery < Struct.new(
  :auto_scaling_group_name,
  :metrics,
  :granularity)
  include Aws::Structure
end

#metricsArray<String>

One or more of the following metrics. If you omit this parameter, all metrics are enabled.

  • GroupMinSize

  • GroupMaxSize

  • GroupDesiredCapacity

  • GroupInServiceInstances

  • GroupPendingInstances

  • GroupStandbyInstances

  • GroupTerminatingInstances

  • GroupTotalInstances

Returns:

  • (Array<String>)


2141
2142
2143
2144
2145
2146
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2141

class EnableMetricsCollectionQuery < Struct.new(
  :auto_scaling_group_name,
  :metrics,
  :granularity)
  include Aws::Structure
end