Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1CpuTemperatureInfo

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

CPU temperature of a device. Sampled per CPU core in Celsius

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromeManagementV1CpuTemperatureInfo

Returns a new instance of GoogleChromeManagementV1CpuTemperatureInfo.



841
842
843
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 841

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

Instance Attribute Details

#labelString

Output only. CPU label. Example: Core 0 Corresponds to the JSON property label

Returns:

  • (String)


834
835
836
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 834

def label
  @label
end

#temperature_celsiusFixnum

Output only. CPU temperature in Celsius. Corresponds to the JSON property temperatureCelsius

Returns:

  • (Fixnum)


839
840
841
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 839

def temperature_celsius
  @temperature_celsius
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



846
847
848
849
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 846

def update!(**args)
  @label = args[:label] if args.key?(:label)
  @temperature_celsius = args[:temperature_celsius] if args.key?(:temperature_celsius)
end