XObject
Metrics associated with a VM
xen-api class: VM_metrics
xen-api: VM_metrics.get_last_updated
# File lib/pangea/objects.rb, line 530 def last_updated (ref_call :get_last_updated).to_time end
xen-api: VM_metrics.get_memory_actual
# File lib/pangea/objects.rb, line 487 def memory_actual ref_call :get_memory_actual end
xen-api: VM_metrics.get_start_time
# File lib/pangea/objects.rb, line 523 def start_time (ref_call :get_start_time).to_time end
xen-api: VM_metrics.get_state
# File lib/pangea/objects.rb, line 516 def state ref_call :get_state end
(Not documented)
# File lib/pangea/objects.rb, line 534 def to_s vcpu_u = "" vcpus_utilisation.each do |k, v| vcpu_u += "#{k}: %0.2f\n" % (v * 100) end eol = "\n" "[VM Metrics]" + eol + "State: #{state}" + eol + "Start Time: #{start_time}" + eol + "Last Updated: #{last_updated}" + eol + "VCPUs Utilisation:" + eol + vcpu_u end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.