Class: MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthOSVersionPerformance

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

Overview

The user experience analytics device OS version performance entity contains OS version 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 userExperienceAnalyticsAppHealthOSVersionPerformance and sets the default values.



45
46
47
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 45

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_o_s_version_performance

Raises:

  • (StandardError)


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

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

Instance Method Details

#active_device_countObject

Gets the activeDeviceCount property value. The number of active devices for the OS version. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Returns:

  • a integer



30
31
32
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 30

def active_device_count
    return @active_device_count
end

#active_device_count=(value) ⇒ Object

Sets the activeDeviceCount property value. The number of active devices for the OS version. Valid values 0 to 2147483647. Supports: $filter, $select, $OrderBy. Read-only. Valid values -2147483648 to 2147483647

Parameters:

  • value

    Value to set for the activeDeviceCount property.

Returns:

  • a void



38
39
40
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 38

def active_device_count=(value)
    @active_device_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



61
62
63
64
65
66
67
68
69
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 61

def get_field_deserializers()
    return super.merge({
        "activeDeviceCount" => lambda {|n| @active_device_count = 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() },
        "osVersionAppHealthScore" => lambda {|n| @os_version_app_health_score = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
    })
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



74
75
76
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 74

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



82
83
84
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 82

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 installed on the device. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



89
90
91
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 89

def os_build_number
    return @os_build_number
end

#os_build_number=(value) ⇒ Object

Sets the osBuildNumber property value. The OS build number installed on the device. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the osBuildNumber property.

Returns:

  • a void



97
98
99
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 97

def os_build_number=(value)
    @os_build_number = value
end

#os_versionObject

Gets the osVersion property value. The OS version installed on the device. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



104
105
106
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 104

def os_version
    return @os_version
end

#os_version=(value) ⇒ Object

Sets the osVersion property value. The OS version installed on the device. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the osVersion property.

Returns:

  • a void



112
113
114
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 112

def os_version=(value)
    @os_version = value
end

#os_version_app_health_scoreObject

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

Returns:

  • a double



119
120
121
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 119

def os_version_app_health_score
    return @os_version_app_health_score
end

#os_version_app_health_score=(value) ⇒ Object

Sets the osVersionAppHealthScore property value. The application health score of the OS version. 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 osVersionAppHealthScore property.

Returns:

  • a void



127
128
129
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 127

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


135
136
137
138
139
140
141
142
143
# File 'lib/models/user_experience_analytics_app_health_o_s_version_performance.rb', line 135

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("meanTimeToFailureInMinutes", @mean_time_to_failure_in_minutes)
    writer.write_string_value("osBuildNumber", @os_build_number)
    writer.write_string_value("osVersion", @os_version)
    writer.write_object_value("osVersionAppHealthScore", @os_version_app_health_score)
end