Class: Telnyx::Models::VoiceSDKCallReportLogEntry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/voice_sdk_call_report_log_entry.rb

Defined Under Namespace

Modules: Level

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(context: nil, level: nil, message: nil, timestamp: nil) ⇒ Object

A raw Voice SDK log entry. Additional SDK-specific fields may be present.

Parameters:

  • context (Hash{Symbol=>Object}) (defaults to: nil)

    Raw structured context attached to the log entry.

  • level (Symbol, Telnyx::Models::VoiceSDKCallReportLogEntry::Level) (defaults to: nil)

    Log level emitted by the SDK.

  • message (String) (defaults to: nil)

    Log message.

  • timestamp (Time) (defaults to: nil)

    Time when the log entry was emitted.



# File 'lib/telnyx/models/voice_sdk_call_report_log_entry.rb', line 30

Instance Attribute Details

#contextHash{Symbol=>Object}?

Raw structured context attached to the log entry.

Returns:

  • (Hash{Symbol=>Object}, nil)


10
# File 'lib/telnyx/models/voice_sdk_call_report_log_entry.rb', line 10

optional :context, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#levelSymbol, ...

Log level emitted by the SDK.



16
# File 'lib/telnyx/models/voice_sdk_call_report_log_entry.rb', line 16

optional :level, enum: -> { Telnyx::VoiceSDKCallReportLogEntry::Level }

#messageString?

Log message.

Returns:

  • (String, nil)


22
# File 'lib/telnyx/models/voice_sdk_call_report_log_entry.rb', line 22

optional :message, String

#timestampTime?

Time when the log entry was emitted.

Returns:

  • (Time, nil)


28
# File 'lib/telnyx/models/voice_sdk_call_report_log_entry.rb', line 28

optional :timestamp, Time