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:
|
2013-12-10 20:05:42 -05:00
|
|
|
# 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
|