Class: WhopSDK::Models::AppLogsResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/app_logs_response.rb,
sig/whop_sdk/models/app_logs_response.rbs

Defined Under Namespace

Modules: Source

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(app_build_id:, app_id:, created_at:, level:, message:, request_id:, source:, cpu_time_ms: nil, outcome: nil, request_method: nil, request_path: nil, response_status: nil, stack: nil, truncated: nil, wall_time_ms: nil) ⇒ Object

Parameters:

  • app_build_id (String)
  • app_id (String)
  • created_at (Time)
  • level (String)
  • message (String)
  • request_id (String)
  • source (Symbol, WhopSDK::Models::AppLogsResponse::Data::Source)
  • cpu_time_ms (Integer) (defaults to: nil)
  • outcome (String, nil) (defaults to: nil)
  • request_method (String, nil) (defaults to: nil)
  • request_path (String, nil) (defaults to: nil)
  • response_status (Integer, nil) (defaults to: nil)
  • stack (String, nil) (defaults to: nil)
  • truncated (Boolean) (defaults to: nil)
  • wall_time_ms (Integer) (defaults to: nil)


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/whop_sdk/models/app_logs_response.rb', line 21

class Data < WhopSDK::Internal::Type::BaseModel
  # @!attribute app_build_id
  #
  #   @return [String]
  required :app_build_id, String

  # @!attribute app_id
  #
  #   @return [String]
  required :app_id, String

  # @!attribute created_at
  #
  #   @return [Time]
  required :created_at, Time

  # @!attribute level
  #
  #   @return [String]
  required :level, String

  # @!attribute message
  #
  #   @return [String]
  required :message, String

  # @!attribute request_id
  #
  #   @return [String]
  required :request_id, String

  # @!attribute source
  #
  #   @return [Symbol, WhopSDK::Models::AppLogsResponse::Data::Source]
  required :source, enum: -> { WhopSDK::Models::AppLogsResponse::Data::Source }

  # @!attribute cpu_time_ms
  #
  #   @return [Integer, nil]
  optional :cpu_time_ms, Integer

  # @!attribute outcome
  #
  #   @return [String, nil]
  optional :outcome, String, nil?: true

  # @!attribute request_method
  #
  #   @return [String, nil]
  optional :request_method, String, nil?: true

  # @!attribute request_path
  #
  #   @return [String, nil]
  optional :request_path, String, nil?: true

  # @!attribute response_status
  #
  #   @return [Integer, nil]
  optional :response_status, Integer, nil?: true

  # @!attribute stack
  #
  #   @return [String, nil]
  optional :stack, String, nil?: true

  # @!attribute truncated
  #
  #   @return [Boolean, nil]
  optional :truncated, WhopSDK::Internal::Type::Boolean

  # @!attribute wall_time_ms
  #
  #   @return [Integer, nil]
  optional :wall_time_ms, Integer

  # @!method initialize(app_build_id:, app_id:, created_at:, level:, message:, request_id:, source:, cpu_time_ms: nil, outcome: nil, request_method: nil, request_path: nil, response_status: nil, stack: nil, truncated: nil, wall_time_ms: nil)
  #   @param app_build_id [String]
  #   @param app_id [String]
  #   @param created_at [Time]
  #   @param level [String]
  #   @param message [String]
  #   @param request_id [String]
  #   @param source [Symbol, WhopSDK::Models::AppLogsResponse::Data::Source]
  #   @param cpu_time_ms [Integer]
  #   @param outcome [String, nil]
  #   @param request_method [String, nil]
  #   @param request_path [String, nil]
  #   @param response_status [Integer, nil]
  #   @param stack [String, nil]
  #   @param truncated [Boolean]
  #   @param wall_time_ms [Integer]

  # @see WhopSDK::Models::AppLogsResponse::Data#source
  module Source
    extend WhopSDK::Internal::Type::Enum

    CONSOLE = :console
    EXCEPTION = :exception
    REQUEST = :request

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

Instance Attribute Details

#app_build_idString

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/whop_sdk/models/app_logs_response.rb', line 25

required :app_build_id, String

#app_idString

Parameters:

  • value (String)

Returns:

  • (String)


30
# File 'lib/whop_sdk/models/app_logs_response.rb', line 30

required :app_id, String

#cpu_time_msInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


60
# File 'lib/whop_sdk/models/app_logs_response.rb', line 60

optional :cpu_time_ms, Integer

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


35
# File 'lib/whop_sdk/models/app_logs_response.rb', line 35

required :created_at, Time

#levelString

Parameters:

  • value (String)

Returns:

  • (String)


40
# File 'lib/whop_sdk/models/app_logs_response.rb', line 40

required :level, String

#messageString

Parameters:

  • value (String)

Returns:

  • (String)


45
# File 'lib/whop_sdk/models/app_logs_response.rb', line 45

required :message, String

#outcomeString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


65
# File 'lib/whop_sdk/models/app_logs_response.rb', line 65

optional :outcome, String, nil?: true

#request_idString

Parameters:

  • value (String)

Returns:

  • (String)


50
# File 'lib/whop_sdk/models/app_logs_response.rb', line 50

required :request_id, String

#request_methodString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


70
# File 'lib/whop_sdk/models/app_logs_response.rb', line 70

optional :request_method, String, nil?: true

#request_pathString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


75
# File 'lib/whop_sdk/models/app_logs_response.rb', line 75

optional :request_path, String, nil?: true

#response_statusInteger?

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


80
# File 'lib/whop_sdk/models/app_logs_response.rb', line 80

optional :response_status, Integer, nil?: true

#sourceSymbol, WhopSDK::Models::AppLogsResponse::Data::Source

Parameters:

  • value (WhopSDK::Models::AppLogsResponse::Data::source)

Returns:



55
# File 'lib/whop_sdk/models/app_logs_response.rb', line 55

required :source, enum: -> { WhopSDK::Models::AppLogsResponse::Data::Source }

#stackString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


85
# File 'lib/whop_sdk/models/app_logs_response.rb', line 85

optional :stack, String, nil?: true

#truncatedBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


90
# File 'lib/whop_sdk/models/app_logs_response.rb', line 90

optional :truncated, WhopSDK::Internal::Type::Boolean

#wall_time_msInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


95
# File 'lib/whop_sdk/models/app_logs_response.rb', line 95

optional :wall_time_ms, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


98
# File 'sig/whop_sdk/models/app_logs_response.rbs', line 98

def to_hash: -> {