Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Appliance::Health::System
  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)

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

  Get overall health of system.

- - (System) initialize(config) constructor

  Constructs a new instance.

- - (DateTime) lastcheck

  Get last check timestamp of the health of the system.

## 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:

- (`Com::Vmware::Appliance::Health::System::HealthLevel`) —

  System health.

Raises:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    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:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    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