Sha256: 55a374f5de161dc27bf1958699445ce75420c4599de735e3d6ef7c5490d07bfb

Contents?: true

Size: 653 Bytes

Versions: 26

Compression:

Stored size: 653 Bytes

Contents

module Yao::Resources
  class Hypervisor < Base
    friendly_attributes :hypervisor_hostname, :hypervisor_type, :hypervisor_version, :running_vms, :current_workload,
                        :vcpus, :vcpus_used,
                        :memory_mb, :memory_mb_used, :free_disk_gb,
                        :local_gb, :local_gb_used, :free_disk_gb

    def cpu_info
      JSON.parse self["cpu_info"]
    end

    alias hostname hypervisor_hostname
    alias type     hypervisor_hostname
    alias version  hypervisor_version

    self.service        = "compute"
    self.resource_name  = "os-hypervisor"
    self.resources_name = "os-hypervisors"
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
yao-0.2.0.rc1 lib/yao/resources/hypervisor.rb
yao-0.1.1 lib/yao/resources/hypervisor.rb
yao-0.1.0 lib/yao/resources/hypervisor.rb
yao-0.0.6 lib/yao/resources/hypervisor.rb
yao-0.0.5 lib/yao/resources/hypervisor.rb
yao-0.0.4 lib/yao/resources/hypervisor.rb