Class: Com::Vmware::Appliance::Health::System

Inherits:
VAPI::Bindings::VapiService
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb

Overview

``Com::Vmware::Appliance::Health::System`` class provides methods Get overall health of system.

Defined Under Namespace

Classes: HealthLevel

Instance Method Summary (collapse)

Constructor Details

- (System) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



881
882
883
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 881

def initialize(config)
    super(config, @@service_info)
end

Instance Method Details

- (Com::Vmware::Appliance::Health::System::HealthLevel) get

Get overall health of system.

Returns:

Raises:



903
904
905
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 903

def get()
    invoke_with_info(@@get_info)
end

- (DateTime) lastcheck

Get last check timestamp of the health of the system.

Returns:

  • (DateTime)

    System health last check timestamp.

Raises:



892
893
894
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 892

def lastcheck()
    invoke_with_info(@@lastcheck_info)
end