Class: MicrosoftGraph::Models::UserExperienceAnalyticsModelScores

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/user_experience_analytics_model_scores.rb

Overview

The user experience analytics model scores entity consolidates the various Endpoint Analytics scores.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new userExperienceAnalyticsModelScores and sets the default values.



72
73
74
# File 'lib/models/user_experience_analytics_model_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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a user_experience_analytics_model_scores

Raises:

  • (StandardError)


80
81
82
83
# File 'lib/models/user_experience_analytics_model_scores.rb', line 80

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UserExperienceAnalyticsModelScores.new
end

Instance Method Details

#app_reliability_scoreObject

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

Returns:

  • a double



42
43
44
# File 'lib/models/user_experience_analytics_model_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

Parameters:

  • value

    Value to set for the appReliabilityScore property.

Returns:

  • a void



50
51
52
# File 'lib/models/user_experience_analytics_model_scores.rb', line 50

def app_reliability_score=(value)
    @app_reliability_score = value
end

#battery_health_scoreObject

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

Returns:

  • a double



57
58
59
# File 'lib/models/user_experience_analytics_model_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

Parameters:

  • value

    Value to set for the batteryHealthScore property.

Returns:

  • a void



65
66
67
# File 'lib/models/user_experience_analytics_model_scores.rb', line 65

def battery_health_score=(value)
    @battery_health_score = value
end

#endpoint_analytics_scoreObject

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

Returns:

  • a double



88
89
90
# File 'lib/models/user_experience_analytics_model_scores.rb', line 88

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

Parameters:

  • value

    Value to set for the endpointAnalyticsScore property.

Returns:

  • a void



96
97
98
# File 'lib/models/user_experience_analytics_model_scores.rb', line 96

def endpoint_analytics_score=(value)
    @endpoint_analytics_score = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/models/user_experience_analytics_model_scores.rb', line 103

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) }) },
        "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() },
        "modelDeviceCount" => lambda {|n| @model_device_count = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "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_statusObject

Gets the healthStatus property value. The healthStatus property

Returns:

  • a user_experience_analytics_health_state



120
121
122
# File 'lib/models/user_experience_analytics_model_scores.rb', line 120

def health_status
    return @health_status
end

#health_status=(value) ⇒ Object

Sets the healthStatus property value. The healthStatus property

Parameters:

  • value

    Value to set for the healthStatus property.

Returns:

  • a void



128
129
130
# File 'lib/models/user_experience_analytics_model_scores.rb', line 128

def health_status=(value)
    @health_status = value
end

#manufacturerObject

Gets the manufacturer property value. The manufacturer name of the device. Examples: Microsoft Corporation, HP, Lenovo. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



135
136
137
# File 'lib/models/user_experience_analytics_model_scores.rb', line 135

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.

Parameters:

  • value

    Value to set for the manufacturer property.

Returns:

  • a void



143
144
145
# File 'lib/models/user_experience_analytics_model_scores.rb', line 143

def manufacturer=(value)
    @manufacturer = value
end

#modelObject

Gets the model property value. The model name of the device. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



150
151
152
# File 'lib/models/user_experience_analytics_model_scores.rb', line 150

def model
    return @model
end

#model=(value) ⇒ Object

Sets the model property value. The model name of the device. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the model property.

Returns:

  • a void



158
159
160
# File 'lib/models/user_experience_analytics_model_scores.rb', line 158

def model=(value)
    @model = value
end

#model_device_countObject

Gets the modelDeviceCount property value. Indicates unique devices count of given model in a consolidated report. Supports: $select, $OrderBy. Read-only. Valid values -9.22337203685478E+18 to 9.22337203685478E+18

Returns:

  • a int64



165
166
167
# File 'lib/models/user_experience_analytics_model_scores.rb', line 165

def model_device_count
    return @model_device_count
end

#model_device_count=(value) ⇒ Object

Sets the modelDeviceCount property value. Indicates unique devices count of given model in a consolidated report. Supports: $select, $OrderBy. Read-only. Valid values -9.22337203685478E+18 to 9.22337203685478E+18

Parameters:

  • value

    Value to set for the modelDeviceCount property.

Returns:

  • a void



173
174
175
# File 'lib/models/user_experience_analytics_model_scores.rb', line 173

def model_device_count=(value)
    @model_device_count = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/models/user_experience_analytics_model_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_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("modelDeviceCount", @model_device_count)
    writer.write_object_value("startupPerformanceScore", @startup_performance_score)
    writer.write_object_value("workFromAnywhereScore", @work_from_anywhere_score)
end

#startup_performance_scoreObject

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

Returns:

  • a double



198
199
200
# File 'lib/models/user_experience_analytics_model_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

Parameters:

  • value

    Value to set for the startupPerformanceScore property.

Returns:

  • a void



206
207
208
# File 'lib/models/user_experience_analytics_model_scores.rb', line 206

def startup_performance_score=(value)
    @startup_performance_score = value
end

#work_from_anywhere_scoreObject

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

Returns:

  • a double



213
214
215
# File 'lib/models/user_experience_analytics_model_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

Parameters:

  • value

    Value to set for the workFromAnywhereScore property.

Returns:

  • a void



221
222
223
# File 'lib/models/user_experience_analytics_model_scores.rb', line 221

def work_from_anywhere_score=(value)
    @work_from_anywhere_score = value
end