Class: MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformance

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

Overview

The user experience analytics device performance entity contains device performance details.

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 userExperienceAnalyticsAppHealthDevicePerformance and sets the default values.



79
80
81
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 79

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_app_health_device_performance

Raises:

  • (StandardError)


102
103
104
105
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 102

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

Instance Method Details

#app_crash_countObject

Gets the appCrashCount property value. The number of application crashes for the device. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



49
50
51
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 49

def app_crash_count
    return @app_crash_count
end

#app_crash_count=(value) ⇒ Object

Sets the appCrashCount property value. The number of application crashes for the device. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the appCrashCount property.

Returns:

  • a void



57
58
59
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 57

def app_crash_count=(value)
    @app_crash_count = value
end

#app_hang_countObject

Gets the appHangCount property value. The number of application hangs for the device. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



64
65
66
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 64

def app_hang_count
    return @app_hang_count
end

#app_hang_count=(value) ⇒ Object

Sets the appHangCount property value. The number of application hangs for the device. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the appHangCount property.

Returns:

  • a void



72
73
74
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 72

def app_hang_count=(value)
    @app_hang_count = value
end

#crashed_app_countObject

Gets the crashedAppCount property value. The number of distinct application crashes for the device. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



86
87
88
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 86

def crashed_app_count
    return @crashed_app_count
end

#crashed_app_count=(value) ⇒ Object

Sets the crashedAppCount property value. The number of distinct application crashes for the device. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the crashedAppCount property.

Returns:

  • a void



94
95
96
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 94

def crashed_app_count=(value)
    @crashed_app_count = value
end

#device_app_health_scoreObject

Gets the deviceAppHealthScore property value. The application health score of the device. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308

Returns:

  • a double



110
111
112
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 110

def device_app_health_score
    return @device_app_health_score
end

#device_app_health_score=(value) ⇒ Object

Sets the deviceAppHealthScore property value. The application health score of the device. Valid values 0 to 100. Supports: $filter, $select, $OrderBy. Read-only. Valid values -1.79769313486232E+308 to 1.79769313486232E+308

Parameters:

  • value

    Value to set for the deviceAppHealthScore property.

Returns:

  • a void



118
119
120
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 118

def device_app_health_score=(value)
    @device_app_health_score = value
end

#device_display_nameObject

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

Returns:

  • a string



125
126
127
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 125

def device_display_name
    return @device_display_name
end

#device_display_name=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the deviceDisplayName property.

Returns:

  • a void



133
134
135
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 133

def device_display_name=(value)
    @device_display_name = value
end

#device_idObject

Gets the deviceId property value. The Intune device id of the device. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



140
141
142
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 140

def device_id
    return @device_id
end

#device_id=(value) ⇒ Object

Sets the deviceId property value. The Intune device id of the device. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the deviceId property.

Returns:

  • a void



148
149
150
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 148

def device_id=(value)
    @device_id = value
end

#device_manufacturerObject

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

Returns:

  • a string



155
156
157
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 155

def device_manufacturer
    return @device_manufacturer
end

#device_manufacturer=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the deviceManufacturer property.

Returns:

  • a void



163
164
165
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 163

def device_manufacturer=(value)
    @device_manufacturer = value
end

#device_modelObject

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

Returns:

  • a string



170
171
172
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 170

def device_model
    return @device_model
end

#device_model=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the deviceModel property.

Returns:

  • a void



178
179
180
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 178

def device_model=(value)
    @device_model = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 185

def get_field_deserializers()
    return super.merge({
        "appCrashCount" => lambda {|n| @app_crash_count = n.get_number_value() },
        "appHangCount" => lambda {|n| @app_hang_count = n.get_number_value() },
        "crashedAppCount" => lambda {|n| @crashed_app_count = n.get_number_value() },
        "deviceAppHealthScore" => lambda {|n| @device_app_health_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "deviceDisplayName" => lambda {|n| @device_display_name = n.get_string_value() },
        "deviceId" => lambda {|n| @device_id = n.get_string_value() },
        "deviceManufacturer" => lambda {|n| @device_manufacturer = n.get_string_value() },
        "deviceModel" => lambda {|n| @device_model = n.get_string_value() },
        "healthStatus" => lambda {|n| @health_status = n.get_enum_value(MicrosoftGraph::Models::UserExperienceAnalyticsHealthState) },
        "meanTimeToFailureInMinutes" => lambda {|n| @mean_time_to_failure_in_minutes = n.get_number_value() },
        "processedDateTime" => lambda {|n| @processed_date_time = n.get_date_time_value() },
    })
end

#health_statusObject

Gets the healthStatus property value. The healthStatus property

Returns:

  • a user_experience_analytics_health_state



204
205
206
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 204

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



212
213
214
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 212

def health_status=(value)
    @health_status = value
end

#mean_time_to_failure_in_minutesObject

Gets the meanTimeToFailureInMinutes property value. The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



219
220
221
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 219

def mean_time_to_failure_in_minutes
    return @mean_time_to_failure_in_minutes
end

#mean_time_to_failure_in_minutes=(value) ⇒ Object

Sets the meanTimeToFailureInMinutes property value. The mean time to failure for the application in minutes. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the meanTimeToFailureInMinutes property.

Returns:

  • a void



227
228
229
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 227

def mean_time_to_failure_in_minutes=(value)
    @mean_time_to_failure_in_minutes = value
end

#processed_date_timeObject

Gets the processedDateTime property value. The date and time when the statistics were last computed. The value cannot be modified and is automatically populated when the statistics are computed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2022 would look like this: ‘2022-01-01T00:00:00Z’. Returned by default. Read-only.

Returns:

  • a date_time



234
235
236
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 234

def processed_date_time
    return @processed_date_time
end

#processed_date_time=(value) ⇒ Object

Sets the processedDateTime property value. The date and time when the statistics were last computed. The value cannot be modified and is automatically populated when the statistics are computed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2022 would look like this: ‘2022-01-01T00:00:00Z’. Returned by default. Read-only.

Parameters:

  • value

    Value to set for the processedDateTime property.

Returns:

  • a void



242
243
244
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 242

def processed_date_time=(value)
    @processed_date_time = 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)


250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
# File 'lib/models/user_experience_analytics_app_health_device_performance.rb', line 250

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_number_value("appCrashCount", @app_crash_count)
    writer.write_number_value("appHangCount", @app_hang_count)
    writer.write_number_value("crashedAppCount", @crashed_app_count)
    writer.write_object_value("deviceAppHealthScore", @device_app_health_score)
    writer.write_string_value("deviceDisplayName", @device_display_name)
    writer.write_string_value("deviceId", @device_id)
    writer.write_string_value("deviceManufacturer", @device_manufacturer)
    writer.write_string_value("deviceModel", @device_model)
    writer.write_enum_value("healthStatus", @health_status)
    writer.write_number_value("meanTimeToFailureInMinutes", @mean_time_to_failure_in_minutes)
    writer.write_date_time_value("processedDateTime", @processed_date_time)
end