Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1RuntimeCountersReport

Inherits:
Object
  • Object
show all
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

Runtime counters retrieved from CPU. Currently the runtime counters telemetry is only supported by Intel vPro PSR on Gen 14+.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromeManagementV1RuntimeCountersReport

Returns a new instance of GoogleChromeManagementV1RuntimeCountersReport.



2795
2796
2797
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2795

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enter_hibernation_countFixnum

Number of times that the device has entered into the hibernation state. Currently obtained via the PSR, count from S0->S4. Corresponds to the JSON property enterHibernationCount

Returns:

  • (Fixnum)


2771
2772
2773
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2771

def enter_hibernation_count
  @enter_hibernation_count
end

#enter_poweroff_countFixnum

Number of times that the device has entered into the power-off state. Currently obtained via the PSR, count from S0->S5. Corresponds to the JSON property enterPoweroffCount

Returns:

  • (Fixnum)


2777
2778
2779
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2777

def enter_poweroff_count
  @enter_poweroff_count
end

#enter_sleep_countFixnum

Number of times that the device has entered into the sleep state. Currently obtained via the PSR, count from S0->S3. Corresponds to the JSON property enterSleepCount

Returns:

  • (Fixnum)


2783
2784
2785
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2783

def enter_sleep_count
  @enter_sleep_count
end

#report_timeString

Timestamp when the report was collected. Corresponds to the JSON property reportTime

Returns:

  • (String)


2788
2789
2790
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2788

def report_time
  @report_time
end

#uptime_runtime_durationString

Total lifetime runtime. Currently always S0 runtime from Intel vPro PSR. Corresponds to the JSON property uptimeRuntimeDuration

Returns:

  • (String)


2793
2794
2795
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2793

def uptime_runtime_duration
  @uptime_runtime_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2800
2801
2802
2803
2804
2805
2806
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2800

def update!(**args)
  @enter_hibernation_count = args[:enter_hibernation_count] if args.key?(:enter_hibernation_count)
  @enter_poweroff_count = args[:enter_poweroff_count] if args.key?(:enter_poweroff_count)
  @enter_sleep_count = args[:enter_sleep_count] if args.key?(:enter_sleep_count)
  @report_time = args[:report_time] if args.key?(:report_time)
  @uptime_runtime_duration = args[:uptime_runtime_duration] if args.key?(:uptime_runtime_duration)
end