Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryStatusReport
- Inherits:
-
Object
- Object
- Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryStatusReport
- 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
Status data for battery. * This field is telemetry information and this will change over time as the device is utilized. * Data for this field is controlled via policy: ReportDevicePowerStatus * Data Collection Frequency: Only at Upload * Default Data Reporting Frequency: 3 hours - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: No * Reported for affiliated users only: N/A * Granular permission needed: TELEMETRY_API_BATTERY_REPORT
Instance Attribute Summary collapse
-
#battery_health ⇒ String
Output only.
-
#cycle_count ⇒ Fixnum
Output only.
-
#full_charge_capacity ⇒ Fixnum
Output only.
-
#report_time ⇒ String
Output only.
-
#sample ⇒ Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport>
Output only.
-
#serial_number ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromeManagementV1BatteryStatusReport
constructor
A new instance of GoogleChromeManagementV1BatteryStatusReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromeManagementV1BatteryStatusReport
Returns a new instance of GoogleChromeManagementV1BatteryStatusReport.
504 505 506 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 504 def initialize(**args) update!(**args) end |
Instance Attribute Details
#battery_health ⇒ String
Output only. Battery health.
Corresponds to the JSON property batteryHealth
476 477 478 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 476 def battery_health @battery_health end |
#cycle_count ⇒ Fixnum
Output only. Cycle count.
Corresponds to the JSON property cycleCount
481 482 483 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 481 def cycle_count @cycle_count end |
#full_charge_capacity ⇒ Fixnum
Output only. Full charge capacity (mAmpere-hours).
Corresponds to the JSON property fullChargeCapacity
486 487 488 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 486 def full_charge_capacity @full_charge_capacity end |
#report_time ⇒ String
Output only. Timestamp of when the sample was collected on device
Corresponds to the JSON property reportTime
491 492 493 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 491 def report_time @report_time end |
#sample ⇒ Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport>
Output only. Sampling data for the battery sorted in a decreasing order of
report_time.
Corresponds to the JSON property sample
497 498 499 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 497 def sample @sample end |
#serial_number ⇒ String
Output only. Battery serial number.
Corresponds to the JSON property serialNumber
502 503 504 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 502 def serial_number @serial_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
509 510 511 512 513 514 515 516 |
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 509 def update!(**args) @battery_health = args[:battery_health] if args.key?(:battery_health) @cycle_count = args[:cycle_count] if args.key?(:cycle_count) @full_charge_capacity = args[:full_charge_capacity] if args.key?(:full_charge_capacity) @report_time = args[:report_time] if args.key?(:report_time) @sample = args[:sample] if args.key?(:sample) @serial_number = args[:serial_number] if args.key?(:serial_number) end |