Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu
- 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
-
#c_states ⇒ Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState>
C-States indicate the power consumption state of the CPU.
-
#current_scaling_frequency_khz ⇒ Fixnum
Current frequency the CPU is running at.
-
#idle_duration ⇒ String
Idle time since last boot.
-
#max_scaling_frequency_khz ⇒ Fixnum
Maximum frequency the CPU is allowed to run at, by policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogicalCpu
constructor
A new instance of LogicalCpu.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LogicalCpu
Returns a new instance of LogicalCpu.
1443 1444 1445 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1443 def initialize(**args) update!(**args) end |
Instance Attribute Details
#c_states ⇒ Array<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
1426 1427 1428 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1426 def c_states @c_states end |
#current_scaling_frequency_khz ⇒ Fixnum
Current frequency the CPU is running at.
Corresponds to the JSON property currentScalingFrequencyKhz
1431 1432 1433 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1431 def current_scaling_frequency_khz @current_scaling_frequency_khz end |
#idle_duration ⇒ String
Idle time since last boot.
Corresponds to the JSON property idleDuration
1436 1437 1438 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1436 def idle_duration @idle_duration end |
#max_scaling_frequency_khz ⇒ Fixnum
Maximum frequency the CPU is allowed to run at, by policy.
Corresponds to the JSON property maxScalingFrequencyKhz
1441 1442 1443 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1441 def max_scaling_frequency_khz @max_scaling_frequency_khz end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1448 1449 1450 1451 1452 1453 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1448 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 |