Class: Aws::CloudWatch::Types::Metric
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatch::Types::Metric
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudwatch/types.rb
Overview
Note:
When making an API call, you may pass Metric data as a hash:
{
namespace: "Namespace",
metric_name: "MetricName",
dimensions: [
{
name: "DimensionName", # required
value: "DimensionValue", # required
},
],
}
Represents a specific metric.
Instance Attribute Summary collapse
-
#dimensions ⇒ Array<Types::Dimension>
The dimensions for the metric.
-
#metric_name ⇒ String
The name of the metric.
-
#namespace ⇒ String
The namespace of the metric.
Instance Attribute Details
#dimensions ⇒ Array<Types::Dimension>
The dimensions for the metric.
1020 1021 1022 1023 1024 1025 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1020 class Metric < Struct.new( :namespace, :metric_name, :dimensions) include Aws::Structure end |
#metric_name ⇒ String
The name of the metric. This is a required field.
1020 1021 1022 1023 1024 1025 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1020 class Metric < Struct.new( :namespace, :metric_name, :dimensions) include Aws::Structure end |
#namespace ⇒ String
The namespace of the metric.
1020 1021 1022 1023 1024 1025 |
# File 'lib/aws-sdk-cloudwatch/types.rb', line 1020 class Metric < Struct.new( :namespace, :metric_name, :dimensions) include Aws::Structure end |