Class: MicrosoftGraph::Models::UserExperienceAnalyticsDeviceScores
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/user_experience_analytics_device_scores.rb
Overview
The user experience analytics device scores entity consolidates the various Endpoint Analytics scores.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#app_reliability_score ⇒ Object
Gets the appReliabilityScore property value.
-
#app_reliability_score=(value) ⇒ Object
Sets the appReliabilityScore property value.
-
#battery_health_score ⇒ Object
Gets the batteryHealthScore property value.
-
#battery_health_score=(value) ⇒ Object
Sets the batteryHealthScore property value.
-
#device_name ⇒ Object
Gets the deviceName property value.
-
#device_name=(value) ⇒ Object
Sets the deviceName property value.
-
#endpoint_analytics_score ⇒ Object
Gets the endpointAnalyticsScore property value.
-
#endpoint_analytics_score=(value) ⇒ Object
Sets the endpointAnalyticsScore property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#health_status ⇒ Object
Gets the healthStatus property value.
-
#health_status=(value) ⇒ Object
Sets the healthStatus property value.
-
#initialize ⇒ Object
constructor
Instantiates a new userExperienceAnalyticsDeviceScores and sets the default values.
-
#manufacturer ⇒ Object
Gets the manufacturer property value.
-
#manufacturer=(value) ⇒ Object
Sets the manufacturer property value.
-
#model ⇒ Object
Gets the model property value.
-
#model=(value) ⇒ Object
Sets the model property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#startup_performance_score ⇒ Object
Gets the startupPerformanceScore property value.
-
#startup_performance_score=(value) ⇒ Object
Sets the startupPerformanceScore property value.
-
#work_from_anywhere_score ⇒ Object
Gets the workFromAnywhereScore property value.
-
#work_from_anywhere_score=(value) ⇒ Object
Sets the workFromAnywhereScore property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new userExperienceAnalyticsDeviceScores and sets the default values.
72 73 74 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 72 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
80 81 82 83 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 80 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UserExperienceAnalyticsDeviceScores.new end |
Instance Method Details
#app_reliability_score ⇒ Object
Gets the appReliabilityScore property value. Indicates a score calculated from application health data to indicate when a device is having problems running one or more applications. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
42 43 44 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 42 def app_reliability_score return @app_reliability_score end |
#app_reliability_score=(value) ⇒ Object
Sets the appReliabilityScore property value. Indicates a score calculated from application health data to indicate when a device is having problems running one or more applications. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
50 51 52 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 50 def app_reliability_score=(value) @app_reliability_score = value end |
#battery_health_score ⇒ Object
Gets the batteryHealthScore property value. Indicates a calulated score indicating the health of the device’s battery. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
57 58 59 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 57 def battery_health_score return @battery_health_score end |
#battery_health_score=(value) ⇒ Object
Sets the batteryHealthScore property value. Indicates a calulated score indicating the health of the device’s battery. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
65 66 67 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 65 def battery_health_score=(value) @battery_health_score = value end |
#device_name ⇒ Object
Gets the deviceName property value. The name of the device. Supports: $select, $OrderBy. Read-only.
88 89 90 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 88 def device_name return @device_name end |
#device_name=(value) ⇒ Object
Sets the deviceName property value. The name of the device. Supports: $select, $OrderBy. Read-only.
96 97 98 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 96 def device_name=(value) @device_name = value end |
#endpoint_analytics_score ⇒ Object
Gets the endpointAnalyticsScore property value. Indicates a weighted average of the various scores. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
103 104 105 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 103 def endpoint_analytics_score return @endpoint_analytics_score end |
#endpoint_analytics_score=(value) ⇒ Object
Sets the endpointAnalyticsScore property value. Indicates a weighted average of the various scores. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
111 112 113 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 111 def endpoint_analytics_score=(value) @endpoint_analytics_score = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 118 def get_field_deserializers() return super.merge({ "appReliabilityScore" => lambda {|n| @app_reliability_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "batteryHealthScore" => lambda {|n| @battery_health_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "deviceName" => lambda {|n| @device_name = n.get_string_value() }, "endpointAnalyticsScore" => lambda {|n| @endpoint_analytics_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "healthStatus" => lambda {|n| @health_status = n.get_enum_value(MicrosoftGraph::Models::UserExperienceAnalyticsHealthState) }, "manufacturer" => lambda {|n| @manufacturer = n.get_string_value() }, "model" => lambda {|n| @model = n.get_string_value() }, "startupPerformanceScore" => lambda {|n| @startup_performance_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "workFromAnywhereScore" => lambda {|n| @work_from_anywhere_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, }) end |
#health_status ⇒ Object
Gets the healthStatus property value. The healthStatus property
135 136 137 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 135 def health_status return @health_status end |
#health_status=(value) ⇒ Object
Sets the healthStatus property value. The healthStatus property
143 144 145 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 143 def health_status=(value) @health_status = value end |
#manufacturer ⇒ Object
Gets the manufacturer property value. The manufacturer name of the device. Examples: Microsoft Corporation, HP, Lenovo. Supports: $select, $OrderBy. Read-only.
150 151 152 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 150 def manufacturer return @manufacturer end |
#manufacturer=(value) ⇒ Object
Sets the manufacturer property value. The manufacturer name of the device. Examples: Microsoft Corporation, HP, Lenovo. Supports: $select, $OrderBy. Read-only.
158 159 160 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 158 def manufacturer=(value) @manufacturer = value end |
#model ⇒ Object
Gets the model property value. The model name of the device. Supports: $select, $OrderBy. Read-only.
165 166 167 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 165 def model return @model end |
#model=(value) ⇒ Object
Sets the model property value. The model name of the device. Supports: $select, $OrderBy. Read-only.
173 174 175 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 173 def model=(value) @model = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 181 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("appReliabilityScore", @app_reliability_score) writer.write_object_value("batteryHealthScore", @battery_health_score) writer.write_string_value("deviceName", @device_name) writer.write_object_value("endpointAnalyticsScore", @endpoint_analytics_score) writer.write_enum_value("healthStatus", @health_status) writer.write_string_value("manufacturer", @manufacturer) writer.write_string_value("model", @model) writer.write_object_value("startupPerformanceScore", @startup_performance_score) writer.write_object_value("workFromAnywhereScore", @work_from_anywhere_score) end |
#startup_performance_score ⇒ Object
Gets the startupPerformanceScore property value. Indicates a weighted average of boot score and logon score used for measuring startup performance. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
198 199 200 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 198 def startup_performance_score return @startup_performance_score end |
#startup_performance_score=(value) ⇒ Object
Sets the startupPerformanceScore property value. Indicates a weighted average of boot score and logon score used for measuring startup performance. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
206 207 208 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 206 def startup_performance_score=(value) @startup_performance_score = value end |
#work_from_anywhere_score ⇒ Object
Gets the workFromAnywhereScore property value. Indicates a weighted score of the work from anywhere on a device level. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
213 214 215 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 213 def work_from_anywhere_score return @work_from_anywhere_score end |
#work_from_anywhere_score=(value) ⇒ Object
Sets the workFromAnywhereScore property value. Indicates a weighted score of the work from anywhere on a device level. Valid values range from 0-100. Value -1 means associated score is unavailable. A higher score indicates a healthier device. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308
221 222 223 |
# File 'lib/models/user_experience_analytics_device_scores.rb', line 221 def work_from_anywhere_score=(value) @work_from_anywhere_score = value end |