Sha256: a68ce36f16d7962301a012a584a6114cbff8491c00e871b31b6f9d9a4b5b1134
Contents?: true
Size: 516 Bytes
Versions: 43
Compression:
Stored size: 516 Bytes
Contents
require 'fog/openstack/models/model' module Fog module Monitoring class OpenStack class Metric < Fog::OpenStack::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
43 entries across 41 versions & 3 rubygems