Sha256: 9e013ab1452b57b7b10aa3d56d11f4c486939902c1de09fe78d1fbda40e414f6
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
require 'fog/huaweicloud/models/model' module Fog module Monitoring class HuaweiCloud class Metric < Fog::HuaweiCloud::Model identity :id attribute :name attribute :dimensions attribute :timestamp attribute :value attribute :value_meta def to_s name end def create requires :name, :timestamp, :value service.create_metric(attributes).body['metric'] self end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems