Sha256: dd1bf273f0d10cb6d6a89772e697161479818c98f1f64f0924129a342c438dc2
Contents?: true
Size: 958 Bytes
Versions: 4
Compression:
Stored size: 958 Bytes
Contents
module Fog module Metric class HuaweiCloud class Real def get_metric_measures(metric_id, options = {}) request( :expects => 200, :method => 'GET', :path => "metric/#{metric_id}/measures", :query => options, ) end end class Mock def get_metric_measures(_metric_id, _options = {}) response = Excon::Response.new response.status = 200 response.body = [ { "timestamp" => "2014-10-06T14:33:57", "value" => 43.1 }, { "timestamp" => "2014-10-06T14:34:12", "value" => 12 }, { "timestamp" => "2014-10-06T14:34:20", "value" => 2 } ] response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems