Class: Telnyx::Models::VoiceSDKCallReportListResponse::Logs::Entries::Entry

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::Entries::Entry::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.



255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/telnyx/models/voice_sdk_call_report_list_response.rb', line 255

class Entry < Telnyx::Internal::Type::BaseModel
  # @!attribute context
  #   Raw structured context attached to the log entry.
  #
  #   @return [Hash{Symbol=>Object}, nil]
  optional :context, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

  # @!attribute level
  #   Log level emitted by the SDK.
  #
  #   @return [Symbol, Telnyx::Models::VoiceSDKCallReportListResponse::Logs::Entries::Entry::Level, nil]
  optional :level, enum: -> { Telnyx::Models::VoiceSDKCallReportListResponse::Logs::Entries::Entry::Level }

  # @!attribute message
  #   Log message.
  #
  #   @return [String, nil]
  optional :message, String

  # @!attribute timestamp
  #   Time when the log entry was emitted.
  #
  #   @return [Time, nil]
  optional :timestamp, Time

  # @!method initialize(context: nil, level: nil, message: nil, timestamp: nil)
  #   A raw Voice SDK log entry. Additional SDK-specific fields may be present.
  #
  #   @param context [Hash{Symbol=>Object}] Raw structured context attached to the log entry.
  #
  #   @param level [Symbol, Telnyx::Models::VoiceSDKCallReportListResponse::Logs::Entries::Entry::Level] Log level emitted by the SDK.
  #
  #   @param message [String] Log message.
  #
  #   @param timestamp [Time] Time when the log entry was emitted.

  # Log level emitted by the SDK.
  #
  # @see Telnyx::Models::VoiceSDKCallReportListResponse::Logs::Entries::Entry#level
  module Level
    extend Telnyx::Internal::Type::Enum

    DEBUG = :debug
    INFO = :info
    WARN = :warn
    ERROR = :error

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#contextHash{Symbol=>Object}?

Raw structured context attached to the log entry.

Returns:

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


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

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

#levelSymbol, ...

Log level emitted by the SDK.



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

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

#messageString?

Log message.

Returns:

  • (String, nil)


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

optional :message, String

#timestampTime?

Time when the log entry was emitted.

Returns:

  • (Time, nil)


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

optional :timestamp, Time