Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu

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

Overview

Status of a single logical CPU.

Defined Under Namespace

Classes: CState

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogicalCpu

Returns a new instance of LogicalCpu.



1097
1098
1099
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1097

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

Instance Attribute Details

#c_statesArray<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState>

C-States indicate the power consumption state of the CPU. For more information look at documentation published by the CPU maker. Corresponds to the JSON property cStates



1080
1081
1082
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1080

def c_states
  @c_states
end

#current_scaling_frequency_khzFixnum

Current frequency the CPU is running at. Corresponds to the JSON property currentScalingFrequencyKhz

Returns:

  • (Fixnum)


1085
1086
1087
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1085

def current_scaling_frequency_khz
  @current_scaling_frequency_khz
end

#idle_durationString

Idle time since last boot. Corresponds to the JSON property idleDuration

Returns:

  • (String)


1090
1091
1092
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1090

def idle_duration
  @idle_duration
end

#max_scaling_frequency_khzFixnum

Maximum frequency the CPU is allowed to run at, by policy. Corresponds to the JSON property maxScalingFrequencyKhz

Returns:

  • (Fixnum)


1095
1096
1097
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1095

def max_scaling_frequency_khz
  @max_scaling_frequency_khz
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
1105
1106
1107
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1102

def update!(**args)
  @c_states = args[:c_states] if args.key?(:c_states)
  @current_scaling_frequency_khz = args[:current_scaling_frequency_khz] if args.key?(:current_scaling_frequency_khz)
  @idle_duration = args[:idle_duration] if args.key?(:idle_duration)
  @max_scaling_frequency_khz = args[:max_scaling_frequency_khz] if args.key?(:max_scaling_frequency_khz)
end