Class: Aws::CloudWatch::Types::PutMetricDataInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatch::Types::PutMetricDataInput
- Defined in:
- gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb
Overview
Note:
When making an API call, you may pass PutMetricDataInput data as a hash:
{
namespace: "Namespace", # required
metric_data: [ # required
{
metric_name: "MetricName", # required
dimensions: [
{
name: "DimensionName", # required
value: "DimensionValue", # required
},
],
timestamp: Time.now,
value: 1.0,
statistic_values: {
sample_count: 1.0, # required
sum: 1.0, # required
minimum: 1.0, # required
maximum: 1.0, # required
},
values: [1.0],
counts: [1.0],
unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
storage_resolution: 1,
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#metric_data ⇒ Array<Types::MetricDatum>
The data for the metric.
-
#namespace ⇒ String
The namespace for the metric data.
Instance Attribute Details
#metric_data ⇒ Array<Types::MetricDatum>
The data for the metric. The array can include no more than 20 metrics per call.
4215 4216 4217 4218 4219 4220 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 4215 class PutMetricDataInput < Struct.new( :namespace, :metric_data) SENSITIVE = [] include Aws::Structure end |
#namespace ⇒ String
The namespace for the metric data.
To avoid conflicts with Amazon Web Services service namespaces, you
should not specify a namespace that begins with AWS/
4215 4216 4217 4218 4219 4220 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 4215 class PutMetricDataInput < Struct.new( :namespace, :metric_data) SENSITIVE = [] include Aws::Structure end |