Class: Aws::AutoScaling::Types::Metric

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

Overview

Represents a specific metric.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionsArray<Types::MetricDimension>

The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in [Amazon Web Services services that publish CloudWatch metrics ][1] in the *Amazon CloudWatch User Guide*.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html

Returns:



4916
4917
4918
4919
4920
4921
4922
# File 'lib/aws-sdk-autoscaling/types.rb', line 4916

class Metric < Struct.new(
  :namespace,
  :metric_name,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#metric_nameString

The name of the metric.

Returns:

  • (String)


4916
4917
4918
4919
4920
4921
4922
# File 'lib/aws-sdk-autoscaling/types.rb', line 4916

class Metric < Struct.new(
  :namespace,
  :metric_name,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end

#namespaceString

The namespace of the metric. For more information, see the table in

Amazon Web Services services that publish CloudWatch metrics ][1

in the *Amazon CloudWatch User Guide*.

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html

Returns:

  • (String)


4916
4917
4918
4919
4920
4921
4922
# File 'lib/aws-sdk-autoscaling/types.rb', line 4916

class Metric < Struct.new(
  :namespace,
  :metric_name,
  :dimensions)
  SENSITIVE = []
  include Aws::Structure
end