Class: MicrosoftGraph::Models::UserExperienceAnalyticsAppHealthDevicePerformanceDetails

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/user_experience_analytics_app_health_device_performance_details.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 userExperienceAnalyticsAppHealthDevicePerformanceDetails and sets the default values.



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

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_details

Raises:

  • (StandardError)


90
91
92
93
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 90

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

Instance Method Details

#app_display_nameObject

Gets the appDisplayName property value. The friendly name of the application for which the event occurred. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



37
38
39
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 37

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 for which the event occurred. Possible values are: outlook.exe, excel.exe. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the appDisplayName property.

Returns:

  • a void



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

def app_display_name=(value)
    @app_display_name = value
end

#app_publisherObject

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

Returns:

  • a string



52
53
54
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 52

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



60
61
62
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 60

def app_publisher=(value)
    @app_publisher = value
end

#app_versionObject

Gets the appVersion property value. The version of the application. Possible values are: 1.0.0.1, 75.65.23.9. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



67
68
69
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 67

def app_version
    return @app_version
end

#app_version=(value) ⇒ Object

Sets the appVersion property value. The version of the application. Possible values are: 1.0.0.1, 75.65.23.9. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the appVersion property.

Returns:

  • a void



75
76
77
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 75

def app_version=(value)
    @app_version = value
end

#device_display_nameObject

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

Returns:

  • a string



98
99
100
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 98

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



106
107
108
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 106

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



113
114
115
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 113

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



121
122
123
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 121

def device_id=(value)
    @device_id = value
end

#event_date_timeObject

Gets the eventDateTime property value. The time the event occurred. 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



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

def event_date_time
    return @event_date_time
end

#event_date_time=(value) ⇒ Object

Sets the eventDateTime property value. The time the event occurred. 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 eventDateTime property.

Returns:

  • a void



136
137
138
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 136

def event_date_time=(value)
    @event_date_time = value
end

#event_typeObject

Gets the eventType property value. The type of the event. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



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

def event_type
    return @event_type
end

#event_type=(value) ⇒ Object

Sets the eventType property value. The type of the event. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the eventType property.

Returns:

  • a void



151
152
153
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 151

def event_type=(value)
    @event_type = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



158
159
160
161
162
163
164
165
166
167
168
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 158

def get_field_deserializers()
    return super.merge({
        "appDisplayName" => lambda {|n| @app_display_name = n.get_string_value() },
        "appPublisher" => lambda {|n| @app_publisher = n.get_string_value() },
        "appVersion" => lambda {|n| @app_version = n.get_string_value() },
        "deviceDisplayName" => lambda {|n| @device_display_name = n.get_string_value() },
        "deviceId" => lambda {|n| @device_id = n.get_string_value() },
        "eventDateTime" => lambda {|n| @event_date_time = n.get_date_time_value() },
        "eventType" => lambda {|n| @event_type = n.get_string_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)


174
175
176
177
178
179
180
181
182
183
184
# File 'lib/models/user_experience_analytics_app_health_device_performance_details.rb', line 174

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appDisplayName", @app_display_name)
    writer.write_string_value("appPublisher", @app_publisher)
    writer.write_string_value("appVersion", @app_version)
    writer.write_string_value("deviceDisplayName", @device_display_name)
    writer.write_string_value("deviceId", @device_id)
    writer.write_date_time_value("eventDateTime", @event_date_time)
    writer.write_string_value("eventType", @event_type)
end