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.3.6 lib/yao/resources/hypervisor.rb
yao-0.3.5 lib/yao/resources/hypervisor.rb
yao-0.3.4 lib/yao/resources/hypervisor.rb
yao-0.3.3 lib/yao/resources/hypervisor.rb
yao-0.3.2 lib/yao/resources/hypervisor.rb
yao-0.3.1 lib/yao/resources/hypervisor.rb
yao-0.3.0 lib/yao/resources/hypervisor.rb
yao-0.2.13 lib/yao/resources/hypervisor.rb
yao-0.2.12 lib/yao/resources/hypervisor.rb
yao-0.2.11 lib/yao/resources/hypervisor.rb
yao-0.2.10 lib/yao/resources/hypervisor.rb
yao-0.2.9 lib/yao/resources/hypervisor.rb
yao-0.2.8 lib/yao/resources/hypervisor.rb
yao-0.2.7 lib/yao/resources/hypervisor.rb
yao-0.2.6 lib/yao/resources/hypervisor.rb
yao-0.2.5 lib/yao/resources/hypervisor.rb
yao-0.2.4 lib/yao/resources/hypervisor.rb
yao-0.2.2 lib/yao/resources/hypervisor.rb
yao-0.2.1 lib/yao/resources/hypervisor.rb
yao-0.2.0 lib/yao/resources/hypervisor.rb