Class: MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails

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

Overview

The user experience analytics application performance entity contains application performance by application version 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 userExperienceAnalyticsAppHealthAppPerformanceByAppVersionDetails and sets the default values.



114
115
116
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 114

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_app_version_details

Raises:

  • (StandardError)


122
123
124
125
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 122

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

Instance Method Details

#app_crash_countObject

Gets the appCrashCount property value. The number of crashes for the app. Valid values -2147483648 to 2147483647

Returns:

  • a integer



39
40
41
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 39

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 app. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the appCrashCount property.

Returns:

  • a void



47
48
49
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 47

def app_crash_count=(value)
    @app_crash_count = value
end

#app_display_nameObject

Gets the appDisplayName property value. The friendly name of the application.

Returns:

  • a string



54
55
56
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 54

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.

Parameters:

  • value

    Value to set for the appDisplayName property.

Returns:

  • a void



62
63
64
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 62

def app_display_name=(value)
    @app_display_name = value
end

#app_nameObject

Gets the appName property value. The name of the application.

Returns:

  • a string



69
70
71
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 69

def app_name
    return @app_name
end

#app_name=(value) ⇒ Object

Sets the appName property value. The name of the application.

Parameters:

  • value

    Value to set for the appName property.

Returns:

  • a void



77
78
79
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 77

def app_name=(value)
    @app_name = value
end

#app_publisherObject

Gets the appPublisher property value. The publisher of the application.

Returns:

  • a string



84
85
86
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 84

def app_publisher
    return @app_publisher
end

#app_publisher=(value) ⇒ Object

Sets the appPublisher property value. The publisher of the application.

Parameters:

  • value

    Value to set for the appPublisher property.

Returns:

  • a void



92
93
94
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 92

def app_publisher=(value)
    @app_publisher = value
end

#app_versionObject

Gets the appVersion property value. The version of the application.

Returns:

  • a string



99
100
101
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 99

def app_version
    return @app_version
end

#app_version=(value) ⇒ Object

Sets the appVersion property value. The version of the application.

Parameters:

  • value

    Value to set for the appVersion property.

Returns:

  • a void



107
108
109
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 107

def app_version=(value)
    @app_version = value
end

#device_count_with_crashesObject

Gets the deviceCountWithCrashes property value. The total number of devices that have reported one or more application crashes for this application and version. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



130
131
132
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 130

def device_count_with_crashes
    return @device_count_with_crashes
end

#device_count_with_crashes=(value) ⇒ Object

Sets the deviceCountWithCrashes property value. The total number of devices that have reported one or more application crashes for this application and version. Valid values 0 to 2147483647. Supports: $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the deviceCountWithCrashes property.

Returns:

  • a void



138
139
140
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 138

def device_count_with_crashes=(value)
    @device_count_with_crashes = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 145

def get_field_deserializers()
    return super.merge({
        "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() },
        "appVersion" => lambda {|n| @app_version = n.get_string_value() },
        "deviceCountWithCrashes" => lambda {|n| @device_count_with_crashes = n.get_number_value() },
        "isLatestUsedVersion" => lambda {|n| @is_latest_used_version = n.get_boolean_value() },
        "isMostUsedVersion" => lambda {|n| @is_most_used_version = n.get_boolean_value() },
    })
end

#is_latest_used_versionObject

Gets the isLatestUsedVersion property value. When TRUE, indicates the version of application is the latest version for that application that is in use. When FALSE, indicates the version is not the latest version. FALSE by default. Supports: $select, $OrderBy.

Returns:

  • a boolean



161
162
163
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 161

def is_latest_used_version
    return @is_latest_used_version
end

#is_latest_used_version=(value) ⇒ Object

Sets the isLatestUsedVersion property value. When TRUE, indicates the version of application is the latest version for that application that is in use. When FALSE, indicates the version is not the latest version. FALSE by default. Supports: $select, $OrderBy.

Parameters:

  • value

    Value to set for the isLatestUsedVersion property.

Returns:

  • a void



169
170
171
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 169

def is_latest_used_version=(value)
    @is_latest_used_version = value
end

#is_most_used_versionObject

Gets the isMostUsedVersion property value. When TRUE, indicates the version of application is the most used version for that application. When FALSE, indicates the version is not the most used version. FALSE by default. Supports: $select, $OrderBy. Read-only.

Returns:

  • a boolean



176
177
178
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 176

def is_most_used_version
    return @is_most_used_version
end

#is_most_used_version=(value) ⇒ Object

Sets the isMostUsedVersion property value. When TRUE, indicates the version of application is the most used version for that application. When FALSE, indicates the version is not the most used version. FALSE by default. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the isMostUsedVersion property.

Returns:

  • a void



184
185
186
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 184

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


192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/models/user_experience_analytics_app_health_app_performance_by_app_version_details.rb', line 192

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    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_string_value("appVersion", @app_version)
    writer.write_number_value("deviceCountWithCrashes", @device_count_with_crashes)
    writer.write_boolean_value("isLatestUsedVersion", @is_latest_used_version)
    writer.write_boolean_value("isMostUsedVersion", @is_most_used_version)
end