Class: MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByOSVersion

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

Overview

The user experience analytics application performance entity contains app performance details by OS version.

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



132
133
134
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 132

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_app_performance_by_o_s_version

Raises:

  • (StandardError)


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

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

Instance Method Details

#active_device_countObject

Gets the activeDeviceCount property value. The number of devices where the application has been active. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



42
43
44
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 42

def active_device_count
    return @active_device_count
end

#active_device_count=(value) ⇒ Object

Sets the activeDeviceCount property value. The number of devices where the application has been active. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the activeDeviceCount property.

Returns:

  • a void



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

def active_device_count=(value)
    @active_device_count = value
end

#app_crash_countObject

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

Returns:

  • a integer



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

def app_crash_count
    return @app_crash_count
end

#app_crash_count=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the appCrashCount property.

Returns:

  • a void



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

def app_crash_count=(value)
    @app_crash_count = value
end

#app_display_nameObject

Gets the appDisplayName property value. The friendly name of the application. Possible values are: Outlook, Excel. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



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

def app_display_name
    return @app_display_name
end

#app_display_name=(value) ⇒ Object

Sets the appDisplayName property value. The friendly name of the application. Possible values are: Outlook, Excel. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the appDisplayName property.

Returns:

  • a void



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

def app_display_name=(value)
    @app_display_name = value
end

#app_nameObject

Gets the appName property value. The name of the application. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



87
88
89
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 87

def app_name
    return @app_name
end

#app_name=(value) ⇒ Object

Sets the appName property value. The name of the application. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the appName property.

Returns:

  • a void



95
96
97
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 95

def app_name=(value)
    @app_name = value
end

#app_publisherObject

Gets the appPublisher property value. The publisher of the application. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



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

def app_publisher
    return @app_publisher
end

#app_publisher=(value) ⇒ Object

Sets the appPublisher property value. The publisher of the application. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the appPublisher property.

Returns:

  • a void



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

def app_publisher=(value)
    @app_publisher = value
end

#app_usage_durationObject

Gets the appUsageDuration property value. The total usage time of the application in minutes. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



117
118
119
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 117

def app_usage_duration
    return @app_usage_duration
end

#app_usage_duration=(value) ⇒ Object

Sets the appUsageDuration property value. The total usage time of the application in minutes. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the appUsageDuration property.

Returns:

  • a void



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

def app_usage_duration=(value)
    @app_usage_duration = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 148

def get_field_deserializers()
    return super.merge({
        "activeDeviceCount" => lambda {|n| @active_device_count = n.get_number_value() },
        "appCrashCount" => lambda {|n| @app_crash_count = n.get_number_value() },
        "appDisplayName" => lambda {|n| @app_display_name = n.get_string_value() },
        "appName" => lambda {|n| @app_name = n.get_string_value() },
        "appPublisher" => lambda {|n| @app_publisher = n.get_string_value() },
        "appUsageDuration" => lambda {|n| @app_usage_duration = n.get_number_value() },
        "meanTimeToFailureInMinutes" => lambda {|n| @mean_time_to_failure_in_minutes = n.get_number_value() },
        "osBuildNumber" => lambda {|n| @os_build_number = n.get_string_value() },
        "osVersion" => lambda {|n| @os_version = n.get_string_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: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



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

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: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the meanTimeToFailureInMinutes property.

Returns:

  • a void



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

def mean_time_to_failure_in_minutes=(value)
    @mean_time_to_failure_in_minutes = value
end

#os_build_numberObject

Gets the osBuildNumber property value. The OS build number of the application. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



180
181
182
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 180

def os_build_number
    return @os_build_number
end

#os_build_number=(value) ⇒ Object

Sets the osBuildNumber property value. The OS build number of the application. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the osBuildNumber property.

Returns:

  • a void



188
189
190
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 188

def os_build_number=(value)
    @os_build_number = value
end

#os_versionObject

Gets the osVersion property value. The OS version of the application. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



195
196
197
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 195

def os_version
    return @os_version
end

#os_version=(value) ⇒ Object

Sets the osVersion property value. The OS version of the application. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the osVersion property.

Returns:

  • a void



203
204
205
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 203

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


211
212
213
214
215
216
217
218
219
220
221
222
223
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_o_s_version.rb', line 211

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_number_value("activeDeviceCount", @active_device_count)
    writer.write_number_value("appCrashCount", @app_crash_count)
    writer.write_string_value("appDisplayName", @app_display_name)
    writer.write_string_value("appName", @app_name)
    writer.write_string_value("appPublisher", @app_publisher)
    writer.write_number_value("appUsageDuration", @app_usage_duration)
    writer.write_number_value("meanTimeToFailureInMinutes", @mean_time_to_failure_in_minutes)
    writer.write_string_value("osBuildNumber", @os_build_number)
    writer.write_string_value("osVersion", @os_version)
end