Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport

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

Defined Under Namespace

Classes: CpuTemperatureInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CpuStatusReport

Returns a new instance of CpuStatusReport.



1471
1472
1473
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1471

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

Instance Attribute Details

#cpu_temperature_infoArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::CpuTemperatureInfo>

A list of CPU temperature samples. Corresponds to the JSON property cpuTemperatureInfo



1459
1460
1461
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1459

def cpu_temperature_info
  @cpu_temperature_info
end

#cpu_utilization_percentage_infoArray<Fixnum>

Corresponds to the JSON property cpuUtilizationPercentageInfo

Returns:

  • (Array<Fixnum>)


1464
1465
1466
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1464

def cpu_utilization_percentage_info
  @cpu_utilization_percentage_info
end

#report_timeDateTime

Date and time the report was received. Corresponds to the JSON property reportTime

Returns:

  • (DateTime)


1469
1470
1471
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1469

def report_time
  @report_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1476
1477
1478
1479
1480
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1476

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