Class: Telnyx::Models::VoiceSDKCallReportListResponse::Logs::UnionMember0

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/voice_sdk_call_report_list_response.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::VoiceSDKCallReportListResponse::Logs::UnionMember0::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_list_response.rb', line 214

Instance Attribute Details

#contextHash{Symbol=>Object}?

Raw structured context attached to the log entry.

Returns:

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


194
# File 'lib/telnyx/models/voice_sdk_call_report_list_response.rb', line 194

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

#levelSymbol, ...

Log level emitted by the SDK.



200
# File 'lib/telnyx/models/voice_sdk_call_report_list_response.rb', line 200

optional :level, enum: -> { Telnyx::Models::VoiceSDKCallReportListResponse::Logs::UnionMember0::Level }

#messageString?

Log message.

Returns:

  • (String, nil)


206
# File 'lib/telnyx/models/voice_sdk_call_report_list_response.rb', line 206

optional :message, String

#timestampTime?

Time when the log entry was emitted.

Returns:

  • (Time, nil)


212
# File 'lib/telnyx/models/voice_sdk_call_report_list_response.rb', line 212

optional :timestamp, Time