1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/xenserver/models/compute/vbd_metrics.rb

26 lines
564 B
Ruby
Raw Normal View History

2012-04-10 02:01:17 -04:00
require 'fog/core/model'
module Fog
module Compute
class XenServer
class VbdMetrics < Fog::Model
# API Reference here:
# http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=VBD_metrics
2014-02-19 07:30:59 -05:00
2012-04-10 02:01:17 -04:00
identity :reference
2014-02-19 07:30:59 -05:00
2012-04-10 02:01:17 -04:00
attribute :uuid
attribute :last_updated
attribute :other_config
attribute :io_read_kbs
attribute :io_write_kbs
2014-02-19 07:30:59 -05:00
2012-04-10 02:01:17 -04:00
def initialize(attributes = {})
super
self.last_updated = attributes[:last_updated].to_time
end
end
end
end
end