Class: Google::Apis::AndroidmanagementV1::PowerManagementEvent
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::PowerManagementEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb
Overview
A power management event.
Instance Attribute Summary collapse
-
#battery_level ⇒ Float
For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
-
#create_time ⇒ String
The creation time of the event.
-
#event_type ⇒ String
Event type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PowerManagementEvent
constructor
A new instance of PowerManagementEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PowerManagementEvent
Returns a new instance of PowerManagementEvent
2426 2427 2428 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2426 def initialize(**args) update!(**args) end |
Instance Attribute Details
#battery_level ⇒ Float
For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
Corresponds to the JSON property batteryLevel
2414 2415 2416 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2414 def battery_level @battery_level end |
#create_time ⇒ String
The creation time of the event.
Corresponds to the JSON property createTime
2419 2420 2421 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2419 def create_time @create_time end |
#event_type ⇒ String
Event type.
Corresponds to the JSON property eventType
2424 2425 2426 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2424 def event_type @event_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2431 2432 2433 2434 2435 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2431 def update!(**args) @battery_level = args[:battery_level] if args.key?(:battery_level) @create_time = args[:create_time] if args.key?(:create_time) @event_type = args[:event_type] if args.key?(:event_type) end |