Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport
- Inherits:
-
Object
- Object
- Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromemanagement_v1/classes.rb,
lib/google/apis/chromemanagement_v1/representations.rb,
lib/google/apis/chromemanagement_v1/representations.rb
Overview
Sampling data for battery.
Instance Attribute Summary collapse
-
#charge_rate ⇒ Fixnum
Output only.
-
#current ⇒ Fixnum
Output only.
-
#discharge_rate ⇒ Fixnum
Output only.
-
#remaining_capacity ⇒ Fixnum
Output only.
-
#report_time ⇒ String
Output only.
-
#status ⇒ String
Output only.
-
#temperature ⇒ Fixnum
Output only.
-
#voltage ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromeManagementV1BatterySampleReport
constructor
A new instance of GoogleChromeManagementV1BatterySampleReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromeManagementV1BatterySampleReport
Returns a new instance of GoogleChromeManagementV1BatterySampleReport.
305 306 307 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#charge_rate ⇒ Fixnum
Output only. Battery charge percentage.
Corresponds to the JSON property chargeRate
267 268 269 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 267 def charge_rate @charge_rate end |
#current ⇒ Fixnum
Output only. Battery current (mA).
Corresponds to the JSON property current
272 273 274 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 272 def current @current end |
#discharge_rate ⇒ Fixnum
Output only. The battery discharge rate measured in mW. Positive if the
battery is being discharged, negative if it's being charged.
Corresponds to the JSON property dischargeRate
278 279 280 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 278 def discharge_rate @discharge_rate end |
#remaining_capacity ⇒ Fixnum
Output only. Battery remaining capacity (mAmpere-hours).
Corresponds to the JSON property remainingCapacity
283 284 285 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 283 def remaining_capacity @remaining_capacity end |
#report_time ⇒ String
Output only. Timestamp of when the sample was collected on device
Corresponds to the JSON property reportTime
288 289 290 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 288 def report_time @report_time end |
#status ⇒ String
Output only. Battery status read from sysfs. Example: Discharging
Corresponds to the JSON property status
293 294 295 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 293 def status @status end |
#temperature ⇒ Fixnum
Output only. Temperature in Celsius degrees.
Corresponds to the JSON property temperature
298 299 300 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 298 def temperature @temperature end |
#voltage ⇒ Fixnum
Output only. Battery voltage (millivolt).
Corresponds to the JSON property voltage
303 304 305 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 303 def voltage @voltage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
310 311 312 313 314 315 316 317 318 319 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 310 def update!(**args) @charge_rate = args[:charge_rate] if args.key?(:charge_rate) @current = args[:current] if args.key?(:current) @discharge_rate = args[:discharge_rate] if args.key?(:discharge_rate) @remaining_capacity = args[:remaining_capacity] if args.key?(:remaining_capacity) @report_time = args[:report_time] if args.key?(:report_time) @status = args[:status] if args.key?(:status) @temperature = args[:temperature] if args.key?(:temperature) @voltage = args[:voltage] if args.key?(:voltage) end |