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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

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

#nameString

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

Returns:

  • (String)

    The name of the dimension.

#valueString

The value of the dimension. Dimension values cannot contain blank spaces or non-ASCII characters.

Returns:

  • (String)

    The value of the dimension.