Class: MicrosoftGraph::Models::UserExperienceAnalyticsBaseline

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

Overview

The user experience analytics baseline entity contains baseline values against which to compare the user experience analytics scores.

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



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

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_baseline

Raises:

  • (StandardError)


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

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

Instance Method Details

#app_health_metricsObject

Gets the appHealthMetrics property value. The scores and insights for the application health metrics.

Returns:

  • a user_experience_analytics_category



46
47
48
# File 'lib/models/user_experience_analytics_baseline.rb', line 46

def app_health_metrics
    return @app_health_metrics
end

#app_health_metrics=(value) ⇒ Object

Sets the appHealthMetrics property value. The scores and insights for the application health metrics.

Parameters:

  • value

    Value to set for the appHealthMetrics property.

Returns:

  • a void



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

def app_health_metrics=(value)
    @app_health_metrics = value
end

#battery_health_metricsObject

Gets the batteryHealthMetrics property value. The scores and insights for the battery health metrics.

Returns:

  • a user_experience_analytics_category



61
62
63
# File 'lib/models/user_experience_analytics_baseline.rb', line 61

def battery_health_metrics
    return @battery_health_metrics
end

#battery_health_metrics=(value) ⇒ Object

Sets the batteryHealthMetrics property value. The scores and insights for the battery health metrics.

Parameters:

  • value

    Value to set for the batteryHealthMetrics property.

Returns:

  • a void



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

def battery_health_metrics=(value)
    @battery_health_metrics = value
end

#best_practices_metricsObject

Gets the bestPracticesMetrics property value. The scores and insights for the best practices metrics.

Returns:

  • a user_experience_analytics_category



76
77
78
# File 'lib/models/user_experience_analytics_baseline.rb', line 76

def best_practices_metrics
    return @best_practices_metrics
end

#best_practices_metrics=(value) ⇒ Object

Sets the bestPracticesMetrics property value. The scores and insights for the best practices metrics.

Parameters:

  • value

    Value to set for the bestPracticesMetrics property.

Returns:

  • a void



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

def best_practices_metrics=(value)
    @best_practices_metrics = value
end

#created_date_timeObject

Gets the createdDateTime property value. The date the custom baseline was created. The value cannot be modified and is automatically populated when the baseline is created. 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, 2014 would look like this: ‘2014-01-01T00:00:00Z’. Returned by default.

Returns:

  • a date_time



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

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The date the custom baseline was created. The value cannot be modified and is automatically populated when the baseline is created. 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, 2014 would look like this: ‘2014-01-01T00:00:00Z’. Returned by default.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



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

def created_date_time=(value)
    @created_date_time = value
end

#device_boot_performance_metricsObject

Gets the deviceBootPerformanceMetrics property value. The scores and insights for the device boot performance metrics.

Returns:

  • a user_experience_analytics_category



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

def device_boot_performance_metrics
    return @device_boot_performance_metrics
end

#device_boot_performance_metrics=(value) ⇒ Object

Sets the deviceBootPerformanceMetrics property value. The scores and insights for the device boot performance metrics.

Parameters:

  • value

    Value to set for the deviceBootPerformanceMetrics property.

Returns:

  • a void



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

def device_boot_performance_metrics=(value)
    @device_boot_performance_metrics = value
end

#display_nameObject

Gets the displayName property value. The name of the baseline.

Returns:

  • a string



137
138
139
# File 'lib/models/user_experience_analytics_baseline.rb', line 137

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the baseline.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



145
146
147
# File 'lib/models/user_experience_analytics_baseline.rb', line 145

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/models/user_experience_analytics_baseline.rb', line 152

def get_field_deserializers()
    return super.merge({
        "appHealthMetrics" => lambda {|n| @app_health_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
        "batteryHealthMetrics" => lambda {|n| @battery_health_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
        "bestPracticesMetrics" => lambda {|n| @best_practices_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "deviceBootPerformanceMetrics" => lambda {|n| @device_boot_performance_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "isBuiltIn" => lambda {|n| @is_built_in = n.get_boolean_value() },
        "rebootAnalyticsMetrics" => lambda {|n| @reboot_analytics_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
        "resourcePerformanceMetrics" => lambda {|n| @resource_performance_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
        "workFromAnywhereMetrics" => lambda {|n| @work_from_anywhere_metrics = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserExperienceAnalyticsCategory.create_from_discriminator_value(pn) }) },
    })
end

#is_built_inObject

Gets the isBuiltIn property value. When TRUE, indicates the current baseline is the commercial median baseline. When FALSE, indicates it is a custom baseline. FALSE by default.

Returns:

  • a boolean



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

def is_built_in
    return @is_built_in
end

#is_built_in=(value) ⇒ Object

Sets the isBuiltIn property value. When TRUE, indicates the current baseline is the commercial median baseline. When FALSE, indicates it is a custom baseline. FALSE by default.

Parameters:

  • value

    Value to set for the isBuiltIn property.

Returns:

  • a void



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

def is_built_in=(value)
    @is_built_in = value
end

#reboot_analytics_metricsObject

Gets the rebootAnalyticsMetrics property value. The scores and insights for the reboot analytics metrics.

Returns:

  • a user_experience_analytics_category



185
186
187
# File 'lib/models/user_experience_analytics_baseline.rb', line 185

def reboot_analytics_metrics
    return @reboot_analytics_metrics
end

#reboot_analytics_metrics=(value) ⇒ Object

Sets the rebootAnalyticsMetrics property value. The scores and insights for the reboot analytics metrics.

Parameters:

  • value

    Value to set for the rebootAnalyticsMetrics property.

Returns:

  • a void



193
194
195
# File 'lib/models/user_experience_analytics_baseline.rb', line 193

def reboot_analytics_metrics=(value)
    @reboot_analytics_metrics = value
end

#resource_performance_metricsObject

Gets the resourcePerformanceMetrics property value. The scores and insights for the resource performance metrics.

Returns:

  • a user_experience_analytics_category



200
201
202
# File 'lib/models/user_experience_analytics_baseline.rb', line 200

def resource_performance_metrics
    return @resource_performance_metrics
end

#resource_performance_metrics=(value) ⇒ Object

Sets the resourcePerformanceMetrics property value. The scores and insights for the resource performance metrics.

Parameters:

  • value

    Value to set for the resourcePerformanceMetrics property.

Returns:

  • a void



208
209
210
# File 'lib/models/user_experience_analytics_baseline.rb', line 208

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


216
217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'lib/models/user_experience_analytics_baseline.rb', line 216

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("appHealthMetrics", @app_health_metrics)
    writer.write_object_value("batteryHealthMetrics", @battery_health_metrics)
    writer.write_object_value("bestPracticesMetrics", @best_practices_metrics)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("deviceBootPerformanceMetrics", @device_boot_performance_metrics)
    writer.write_string_value("displayName", @display_name)
    writer.write_boolean_value("isBuiltIn", @is_built_in)
    writer.write_object_value("rebootAnalyticsMetrics", @reboot_analytics_metrics)
    writer.write_object_value("resourcePerformanceMetrics", @resource_performance_metrics)
    writer.write_object_value("workFromAnywhereMetrics", @work_from_anywhere_metrics)
end

#work_from_anywhere_metricsObject

Gets the workFromAnywhereMetrics property value. The scores and insights for the work from anywhere metrics.

Returns:

  • a user_experience_analytics_category



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

def work_from_anywhere_metrics
    return @work_from_anywhere_metrics
end

#work_from_anywhere_metrics=(value) ⇒ Object

Sets the workFromAnywhereMetrics property value. The scores and insights for the work from anywhere metrics.

Parameters:

  • value

    Value to set for the workFromAnywhereMetrics property.

Returns:

  • a void



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

def work_from_anywhere_metrics=(value)
    @work_from_anywhere_metrics = value
end