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

Class: Aws::CloudWatch::Types::Dimension

  • Object
show all
Defined in:



When passing Dimension as input to an Aws::Client method, you can use a vanilla Hash:

  name: "DimensionName", # required
  value: "DimensionValue", # required

A dimension is a name/value pair that is part of the identity of a metric. You can assign up to 10 dimensions to a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric.

Instance Attribute Summary collapse

Instance Attribute Details


The name of the dimension. Dimension names cannot contain blank spaces or non-ASCII characters.


  • (String)

    The name of the dimension.


The value of the dimension.


  • (String)

    The value of the dimension.