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

Class: Aws::CloudWatch::Types::Metric

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

Overview

Note:

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

{
  namespace: "Namespace",
  metric_name: "MetricName",
  dimensions: [
    {
      name: "DimensionName", # required
      value: "DimensionValue", # required
    },
  ],
}

Represents a specific metric.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionsArray<Types::Dimension>

The dimensions for the metric.

Returns:

#metric_nameString

The name of the metric. This is a required field.

Returns:

  • (String)

    The name of the metric.

#namespaceString

The namespace of the metric.

Returns:

  • (String)

    The namespace of the metric.