Class: MicrosoftGraph::Models::CallRecordsDeviceInfo

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/call_records_device_info.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new callRecordsDeviceInfo and sets the default values.



142
143
144
# File 'lib/models/call_records_device_info.rb', line 142

def initialize()
    @additional_data = Hash.new
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 call_records_device_info

Raises:

  • (StandardError)


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

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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

def additional_data=(value)
    @additional_data = value
end

#capture_device_driverObject

Gets the captureDeviceDriver property value. Name of the capture device driver used by the media endpoint.

Returns:

  • a string



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

def capture_device_driver
    return @capture_device_driver
end

#capture_device_driver=(value) ⇒ Object

Sets the captureDeviceDriver property value. Name of the capture device driver used by the media endpoint.

Parameters:

  • value

    Value to set for the captureDeviceDriver property.

Returns:

  • a void



105
106
107
# File 'lib/models/call_records_device_info.rb', line 105

def capture_device_driver=(value)
    @capture_device_driver = value
end

#capture_device_nameObject

Gets the captureDeviceName property value. Name of the capture device used by the media endpoint.

Returns:

  • a string



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

def capture_device_name
    return @capture_device_name
end

#capture_device_name=(value) ⇒ Object

Sets the captureDeviceName property value. Name of the capture device used by the media endpoint.

Parameters:

  • value

    Value to set for the captureDeviceName property.

Returns:

  • a void



120
121
122
# File 'lib/models/call_records_device_info.rb', line 120

def capture_device_name=(value)
    @capture_device_name = value
end

#capture_not_functioning_event_ratioObject

Gets the captureNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the capture device was not working properly.

Returns:

  • a float



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

def capture_not_functioning_event_ratio
    return @capture_not_functioning_event_ratio
end

#capture_not_functioning_event_ratio=(value) ⇒ Object

Sets the captureNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the capture device was not working properly.

Parameters:

  • value

    Value to set for the captureNotFunctioningEventRatio property.

Returns:

  • a void



135
136
137
# File 'lib/models/call_records_device_info.rb', line 135

def capture_not_functioning_event_ratio=(value)
    @capture_not_functioning_event_ratio = value
end

#cpu_insufficent_event_ratioObject

Gets the cpuInsufficentEventRatio property value. Fraction of the call that the media endpoint detected the CPU resources available were insufficient and caused poor quality of the audio sent and received.

Returns:

  • a float



149
150
151
# File 'lib/models/call_records_device_info.rb', line 149

def cpu_insufficent_event_ratio
    return @cpu_insufficent_event_ratio
end

#cpu_insufficent_event_ratio=(value) ⇒ Object

Sets the cpuInsufficentEventRatio property value. Fraction of the call that the media endpoint detected the CPU resources available were insufficient and caused poor quality of the audio sent and received.

Parameters:

  • value

    Value to set for the cpuInsufficentEventRatio property.

Returns:

  • a void



157
158
159
# File 'lib/models/call_records_device_info.rb', line 157

def cpu_insufficent_event_ratio=(value)
    @cpu_insufficent_event_ratio = value
end

#device_clipping_event_ratioObject

Gets the deviceClippingEventRatio property value. Fraction of the call that the media endpoint detected clipping in the captured audio that caused poor quality of the audio being sent.

Returns:

  • a float



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

def device_clipping_event_ratio
    return @device_clipping_event_ratio
end

#device_clipping_event_ratio=(value) ⇒ Object

Sets the deviceClippingEventRatio property value. Fraction of the call that the media endpoint detected clipping in the captured audio that caused poor quality of the audio being sent.

Parameters:

  • value

    Value to set for the deviceClippingEventRatio property.

Returns:

  • a void



181
182
183
# File 'lib/models/call_records_device_info.rb', line 181

def device_clipping_event_ratio=(value)
    @device_clipping_event_ratio = value
end

#device_glitch_event_ratioObject

Gets the deviceGlitchEventRatio property value. Fraction of the call that the media endpoint detected glitches or gaps in the audio played or captured that caused poor quality of the audio being sent or received.

Returns:

  • a float



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

def device_glitch_event_ratio
    return @device_glitch_event_ratio
end

#device_glitch_event_ratio=(value) ⇒ Object

Sets the deviceGlitchEventRatio property value. Fraction of the call that the media endpoint detected glitches or gaps in the audio played or captured that caused poor quality of the audio being sent or received.

Parameters:

  • value

    Value to set for the deviceGlitchEventRatio property.

Returns:

  • a void



196
197
198
# File 'lib/models/call_records_device_info.rb', line 196

def device_glitch_event_ratio=(value)
    @device_glitch_event_ratio = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/models/call_records_device_info.rb', line 203

def get_field_deserializers()
    return {
        "captureDeviceDriver" => lambda {|n| @capture_device_driver = n.get_string_value() },
        "captureDeviceName" => lambda {|n| @capture_device_name = n.get_string_value() },
        "captureNotFunctioningEventRatio" => lambda {|n| @capture_not_functioning_event_ratio = n.get_float_value() },
        "cpuInsufficentEventRatio" => lambda {|n| @cpu_insufficent_event_ratio = n.get_float_value() },
        "deviceClippingEventRatio" => lambda {|n| @device_clipping_event_ratio = n.get_float_value() },
        "deviceGlitchEventRatio" => lambda {|n| @device_glitch_event_ratio = n.get_float_value() },
        "howlingEventCount" => lambda {|n| @howling_event_count = n.get_number_value() },
        "initialSignalLevelRootMeanSquare" => lambda {|n| @initial_signal_level_root_mean_square = n.get_float_value() },
        "lowSpeechLevelEventRatio" => lambda {|n| @low_speech_level_event_ratio = n.get_float_value() },
        "lowSpeechToNoiseEventRatio" => lambda {|n| @low_speech_to_noise_event_ratio = n.get_float_value() },
        "micGlitchRate" => lambda {|n| @mic_glitch_rate = n.get_float_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "receivedNoiseLevel" => lambda {|n| @received_noise_level = n.get_number_value() },
        "receivedSignalLevel" => lambda {|n| @received_signal_level = n.get_number_value() },
        "renderDeviceDriver" => lambda {|n| @render_device_driver = n.get_string_value() },
        "renderDeviceName" => lambda {|n| @render_device_name = n.get_string_value() },
        "renderMuteEventRatio" => lambda {|n| @render_mute_event_ratio = n.get_float_value() },
        "renderNotFunctioningEventRatio" => lambda {|n| @render_not_functioning_event_ratio = n.get_float_value() },
        "renderZeroVolumeEventRatio" => lambda {|n| @render_zero_volume_event_ratio = n.get_float_value() },
        "sentNoiseLevel" => lambda {|n| @sent_noise_level = n.get_number_value() },
        "sentSignalLevel" => lambda {|n| @sent_signal_level = n.get_number_value() },
        "speakerGlitchRate" => lambda {|n| @speaker_glitch_rate = n.get_float_value() },
    }
end

#howling_event_countObject

Gets the howlingEventCount property value. Number of times during the call that the media endpoint detected howling or screeching audio.

Returns:

  • a integer



233
234
235
# File 'lib/models/call_records_device_info.rb', line 233

def howling_event_count
    return @howling_event_count
end

#howling_event_count=(value) ⇒ Object

Sets the howlingEventCount property value. Number of times during the call that the media endpoint detected howling or screeching audio.

Parameters:

  • value

    Value to set for the howlingEventCount property.

Returns:

  • a void



241
242
243
# File 'lib/models/call_records_device_info.rb', line 241

def howling_event_count=(value)
    @howling_event_count = value
end

#initial_signal_level_root_mean_squareObject

Gets the initialSignalLevelRootMeanSquare property value. The root mean square (RMS) of the incoming signal of up to the first 30 seconds of the call.

Returns:

  • a float



248
249
250
# File 'lib/models/call_records_device_info.rb', line 248

def initial_signal_level_root_mean_square
    return @initial_signal_level_root_mean_square
end

#initial_signal_level_root_mean_square=(value) ⇒ Object

Sets the initialSignalLevelRootMeanSquare property value. The root mean square (RMS) of the incoming signal of up to the first 30 seconds of the call.

Parameters:

  • value

    Value to set for the initialSignalLevelRootMeanSquare property.

Returns:

  • a void



256
257
258
# File 'lib/models/call_records_device_info.rb', line 256

def initial_signal_level_root_mean_square=(value)
    @initial_signal_level_root_mean_square = value
end

#low_speech_level_event_ratioObject

Gets the lowSpeechLevelEventRatio property value. Fraction of the call that the media endpoint detected low speech level that caused poor quality of the audio being sent.

Returns:

  • a float



263
264
265
# File 'lib/models/call_records_device_info.rb', line 263

def low_speech_level_event_ratio
    return @low_speech_level_event_ratio
end

#low_speech_level_event_ratio=(value) ⇒ Object

Sets the lowSpeechLevelEventRatio property value. Fraction of the call that the media endpoint detected low speech level that caused poor quality of the audio being sent.

Parameters:

  • value

    Value to set for the lowSpeechLevelEventRatio property.

Returns:

  • a void



271
272
273
# File 'lib/models/call_records_device_info.rb', line 271

def low_speech_level_event_ratio=(value)
    @low_speech_level_event_ratio = value
end

#low_speech_to_noise_event_ratioObject

Gets the lowSpeechToNoiseEventRatio property value. Fraction of the call that the media endpoint detected low speech to noise level that caused poor quality of the audio being sent.

Returns:

  • a float



278
279
280
# File 'lib/models/call_records_device_info.rb', line 278

def low_speech_to_noise_event_ratio
    return @low_speech_to_noise_event_ratio
end

#low_speech_to_noise_event_ratio=(value) ⇒ Object

Sets the lowSpeechToNoiseEventRatio property value. Fraction of the call that the media endpoint detected low speech to noise level that caused poor quality of the audio being sent.

Parameters:

  • value

    Value to set for the lowSpeechToNoiseEventRatio property.

Returns:

  • a void



286
287
288
# File 'lib/models/call_records_device_info.rb', line 286

def low_speech_to_noise_event_ratio=(value)
    @low_speech_to_noise_event_ratio = value
end

#mic_glitch_rateObject

Gets the micGlitchRate property value. Glitches per 5 minute interval for the media endpoint’s microphone.

Returns:

  • a float



293
294
295
# File 'lib/models/call_records_device_info.rb', line 293

def mic_glitch_rate
    return @mic_glitch_rate
end

#mic_glitch_rate=(value) ⇒ Object

Sets the micGlitchRate property value. Glitches per 5 minute interval for the media endpoint’s microphone.

Parameters:

  • value

    Value to set for the micGlitchRate property.

Returns:

  • a void



301
302
303
# File 'lib/models/call_records_device_info.rb', line 301

def mic_glitch_rate=(value)
    @mic_glitch_rate = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



308
309
310
# File 'lib/models/call_records_device_info.rb', line 308

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



316
317
318
# File 'lib/models/call_records_device_info.rb', line 316

def odata_type=(value)
    @odata_type = value
end

#received_noise_levelObject

Gets the receivedNoiseLevel property value. Average energy level of received audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.

Returns:

  • a integer



323
324
325
# File 'lib/models/call_records_device_info.rb', line 323

def received_noise_level
    return @received_noise_level
end

#received_noise_level=(value) ⇒ Object

Sets the receivedNoiseLevel property value. Average energy level of received audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.

Parameters:

  • value

    Value to set for the receivedNoiseLevel property.

Returns:

  • a void



331
332
333
# File 'lib/models/call_records_device_info.rb', line 331

def received_noise_level=(value)
    @received_noise_level = value
end

#received_signal_levelObject

Gets the receivedSignalLevel property value. Average energy level of received audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.

Returns:

  • a integer



338
339
340
# File 'lib/models/call_records_device_info.rb', line 338

def received_signal_level
    return @received_signal_level
end

#received_signal_level=(value) ⇒ Object

Sets the receivedSignalLevel property value. Average energy level of received audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.

Parameters:

  • value

    Value to set for the receivedSignalLevel property.

Returns:

  • a void



346
347
348
# File 'lib/models/call_records_device_info.rb', line 346

def received_signal_level=(value)
    @received_signal_level = value
end

#render_device_driverObject

Gets the renderDeviceDriver property value. Name of the render device driver used by the media endpoint.

Returns:

  • a string



353
354
355
# File 'lib/models/call_records_device_info.rb', line 353

def render_device_driver
    return @render_device_driver
end

#render_device_driver=(value) ⇒ Object

Sets the renderDeviceDriver property value. Name of the render device driver used by the media endpoint.

Parameters:

  • value

    Value to set for the renderDeviceDriver property.

Returns:

  • a void



361
362
363
# File 'lib/models/call_records_device_info.rb', line 361

def render_device_driver=(value)
    @render_device_driver = value
end

#render_device_nameObject

Gets the renderDeviceName property value. Name of the render device used by the media endpoint.

Returns:

  • a string



368
369
370
# File 'lib/models/call_records_device_info.rb', line 368

def render_device_name
    return @render_device_name
end

#render_device_name=(value) ⇒ Object

Sets the renderDeviceName property value. Name of the render device used by the media endpoint.

Parameters:

  • value

    Value to set for the renderDeviceName property.

Returns:

  • a void



376
377
378
# File 'lib/models/call_records_device_info.rb', line 376

def render_device_name=(value)
    @render_device_name = value
end

#render_mute_event_ratioObject

Gets the renderMuteEventRatio property value. Fraction of the call that media endpoint detected device render is muted.

Returns:

  • a float



383
384
385
# File 'lib/models/call_records_device_info.rb', line 383

def render_mute_event_ratio
    return @render_mute_event_ratio
end

#render_mute_event_ratio=(value) ⇒ Object

Sets the renderMuteEventRatio property value. Fraction of the call that media endpoint detected device render is muted.

Parameters:

  • value

    Value to set for the renderMuteEventRatio property.

Returns:

  • a void



391
392
393
# File 'lib/models/call_records_device_info.rb', line 391

def render_mute_event_ratio=(value)
    @render_mute_event_ratio = value
end

#render_not_functioning_event_ratioObject

Gets the renderNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the render device was not working properly.

Returns:

  • a float



398
399
400
# File 'lib/models/call_records_device_info.rb', line 398

def render_not_functioning_event_ratio
    return @render_not_functioning_event_ratio
end

#render_not_functioning_event_ratio=(value) ⇒ Object

Sets the renderNotFunctioningEventRatio property value. Fraction of the call that the media endpoint detected the render device was not working properly.

Parameters:

  • value

    Value to set for the renderNotFunctioningEventRatio property.

Returns:

  • a void



406
407
408
# File 'lib/models/call_records_device_info.rb', line 406

def render_not_functioning_event_ratio=(value)
    @render_not_functioning_event_ratio = value
end

#render_zero_volume_event_ratioObject

Gets the renderZeroVolumeEventRatio property value. Fraction of the call that media endpoint detected device render volume is set to 0.

Returns:

  • a float



413
414
415
# File 'lib/models/call_records_device_info.rb', line 413

def render_zero_volume_event_ratio
    return @render_zero_volume_event_ratio
end

#render_zero_volume_event_ratio=(value) ⇒ Object

Sets the renderZeroVolumeEventRatio property value. Fraction of the call that media endpoint detected device render volume is set to 0.

Parameters:

  • value

    Value to set for the renderZeroVolumeEventRatio property.

Returns:

  • a void



421
422
423
# File 'lib/models/call_records_device_info.rb', line 421

def render_zero_volume_event_ratio=(value)
    @render_zero_volume_event_ratio = value
end

#sent_noise_levelObject

Gets the sentNoiseLevel property value. Average energy level of sent audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.

Returns:

  • a integer



428
429
430
# File 'lib/models/call_records_device_info.rb', line 428

def sent_noise_level
    return @sent_noise_level
end

#sent_noise_level=(value) ⇒ Object

Sets the sentNoiseLevel property value. Average energy level of sent audio for audio classified as mono noise or left channel of stereo noise by the media endpoint.

Parameters:

  • value

    Value to set for the sentNoiseLevel property.

Returns:

  • a void



436
437
438
# File 'lib/models/call_records_device_info.rb', line 436

def sent_noise_level=(value)
    @sent_noise_level = value
end

#sent_signal_levelObject

Gets the sentSignalLevel property value. Average energy level of sent audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.

Returns:

  • a integer



443
444
445
# File 'lib/models/call_records_device_info.rb', line 443

def sent_signal_level
    return @sent_signal_level
end

#sent_signal_level=(value) ⇒ Object

Sets the sentSignalLevel property value. Average energy level of sent audio for audio classified as mono speech, or left channel of stereo speech by the media endpoint.

Parameters:

  • value

    Value to set for the sentSignalLevel property.

Returns:

  • a void



451
452
453
# File 'lib/models/call_records_device_info.rb', line 451

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


459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
# File 'lib/models/call_records_device_info.rb', line 459

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("captureDeviceDriver", @capture_device_driver)
    writer.write_string_value("captureDeviceName", @capture_device_name)
    writer.write_float_value("captureNotFunctioningEventRatio", @capture_not_functioning_event_ratio)
    writer.write_float_value("cpuInsufficentEventRatio", @cpu_insufficent_event_ratio)
    writer.write_float_value("deviceClippingEventRatio", @device_clipping_event_ratio)
    writer.write_float_value("deviceGlitchEventRatio", @device_glitch_event_ratio)
    writer.write_number_value("howlingEventCount", @howling_event_count)
    writer.write_float_value("initialSignalLevelRootMeanSquare", @initial_signal_level_root_mean_square)
    writer.write_float_value("lowSpeechLevelEventRatio", @low_speech_level_event_ratio)
    writer.write_float_value("lowSpeechToNoiseEventRatio", @low_speech_to_noise_event_ratio)
    writer.write_float_value("micGlitchRate", @mic_glitch_rate)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_number_value("receivedNoiseLevel", @received_noise_level)
    writer.write_number_value("receivedSignalLevel", @received_signal_level)
    writer.write_string_value("renderDeviceDriver", @render_device_driver)
    writer.write_string_value("renderDeviceName", @render_device_name)
    writer.write_float_value("renderMuteEventRatio", @render_mute_event_ratio)
    writer.write_float_value("renderNotFunctioningEventRatio", @render_not_functioning_event_ratio)
    writer.write_float_value("renderZeroVolumeEventRatio", @render_zero_volume_event_ratio)
    writer.write_number_value("sentNoiseLevel", @sent_noise_level)
    writer.write_number_value("sentSignalLevel", @sent_signal_level)
    writer.write_float_value("speakerGlitchRate", @speaker_glitch_rate)
    writer.write_additional_data(@additional_data)
end

#speaker_glitch_rateObject

Gets the speakerGlitchRate property value. Glitches per 5 minute internal for the media endpoint’s loudspeaker.

Returns:

  • a float



489
490
491
# File 'lib/models/call_records_device_info.rb', line 489

def speaker_glitch_rate
    return @speaker_glitch_rate
end

#speaker_glitch_rate=(value) ⇒ Object

Sets the speakerGlitchRate property value. Glitches per 5 minute internal for the media endpoint’s loudspeaker.

Parameters:

  • value

    Value to set for the speakerGlitchRate property.

Returns:

  • a void



497
498
499
# File 'lib/models/call_records_device_info.rb', line 497

def speaker_glitch_rate=(value)
    @speaker_glitch_rate = value
end