Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState
- 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 C-state. C-states are various modes the CPU can transition to in order to use more or less power.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Name of the state.
-
#session_duration ⇒ String
Time spent in the state since the last reboot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CState
constructor
A new instance of CState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CState
Returns a new instance of CState.
1470 1471 1472 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1470 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Name of the state.
Corresponds to the JSON property displayName
1463 1464 1465 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1463 def display_name @display_name end |
#session_duration ⇒ String
Time spent in the state since the last reboot.
Corresponds to the JSON property sessionDuration
1468 1469 1470 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1468 def session_duration @session_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1475 1476 1477 1478 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1475 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @session_duration = args[:session_duration] if args.key?(:session_duration) end |