class VSphereAutomation::Appliance::HealthSystemApi
Attributes
Public Class Methods
# File lib/vsphere-automation-appliance/api/health_system_api.rb, line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Get overall health of system. @param [Hash] opts the optional parameters @return [ApplianceHealthSystemResult|VapiStdErrorsErrorError|]
# File lib/vsphere-automation-appliance/api/health_system_api.rb, line 22 def get(opts = {}) data, _status_code, _headers = get_with_http_info(opts) data end
Get overall health of system. @api private @param [Hash] opts the optional parameters @return [Array<(ApplianceHealthSystemResult|VapiStdErrorsErrorError|, Fixnum, Hash)>] data, response status code and response headers
# File lib/vsphere-automation-appliance/api/health_system_api.rb, line 31 def get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: HealthSystemApi.get ...' end # resource path local_var_path = '/appliance/health/system' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'Appliance::ApplianceHealthSystemResult', '400' => 'Appliance::VapiStdErrorsErrorError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: HealthSystemApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get last check timestamp of the health of the system. @param [Hash] opts the optional parameters @return [ApplianceHealthSystemLastcheckResult|VapiStdErrorsErrorError|]
# File lib/vsphere-automation-appliance/api/health_system_api.rb, line 70 def lastcheck(opts = {}) data, _status_code, _headers = lastcheck_with_http_info(opts) data end
Get last check timestamp of the health of the system. @api private @param [Hash] opts the optional parameters @return [Array<(ApplianceHealthSystemLastcheckResult|VapiStdErrorsErrorError|, Fixnum, Hash)>] data, response status code and response headers
# File lib/vsphere-automation-appliance/api/health_system_api.rb, line 79 def lastcheck_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: HealthSystemApi.lastcheck ...' end # resource path local_var_path = '/appliance/health/system/lastcheck' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'Appliance::ApplianceHealthSystemLastcheckResult', '400' => 'Appliance::VapiStdErrorsErrorError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: HealthSystemApi#lastcheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end