def put_data(options = {})
      options = Aws::Util.deep_merge(options,
        namespace: @namespace,
        metric_data: [{ metric_name: @name }]
      )
      resp = @client.put_metric_data(options)
      resp.data
    end
def put_data(options = {})
      options = Aws::Util.deep_merge(options,
        namespace: @namespace,
        metric_data: [{ metric_name: @name }]
      )
      resp = @client.put_metric_data(options)
      resp.data
    end
@example Request syntax with placeholder values

   metric.put_data({
     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,
       },
     ],
   })
 @param [Hash] options ({})
 @option options [required, Array<Types::MetricDatum>] :metric_data
   The data for the metric. The array can include no more than 20 metrics
   per call.
 @return [EmptyStructure]