Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1CpuStatusReport

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chromemanagement_v1/classes.rb,
lib/google/apis/chromemanagement_v1/representations.rb,
lib/google/apis/chromemanagement_v1/representations.rb

Overview

Contains samples of the cpu status reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromeManagementV1CpuStatusReport

Returns a new instance of GoogleChromeManagementV1CpuStatusReport.



814
815
816
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 814

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cpu_temperature_infoArray<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1CpuTemperatureInfo>

Output only. CPU temperature sample info per CPU core in Celsius Corresponds to the JSON property cpuTemperatureInfo



796
797
798
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 796

def cpu_temperature_info
  @cpu_temperature_info
end

#cpu_utilization_pctFixnum

Output only. Sample of CPU utilization (0-100 percent). Corresponds to the JSON property cpuUtilizationPct

Returns:

  • (Fixnum)


801
802
803
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 801

def cpu_utilization_pct
  @cpu_utilization_pct
end

#report_timeString

Output only. The timestamp in milliseconds representing time at which this report was sampled. Corresponds to the JSON property reportTime

Returns:

  • (String)


807
808
809
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 807

def report_time
  @report_time
end

#sample_frequencyString

Output only. Frequency the report is sampled. Corresponds to the JSON property sampleFrequency

Returns:

  • (String)


812
813
814
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 812

def sample_frequency
  @sample_frequency
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



819
820
821
822
823
824
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 819

def update!(**args)
  @cpu_temperature_info = args[:cpu_temperature_info] if args.key?(:cpu_temperature_info)
  @cpu_utilization_pct = args[:cpu_utilization_pct] if args.key?(:cpu_utilization_pct)
  @report_time = args[:report_time] if args.key?(:report_time)
  @sample_frequency = args[:sample_frequency] if args.key?(:sample_frequency)
end