Class: StackOne::Models::Shared::UnifiedLog

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/unifiedlog.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(log_id:, log_type:, request_id:, account_id: nil, action: nil, agent_id: nil, auth_id: nil, auth_type: nil, child_resource: nil, connector_key: nil, connector_owner: nil, connector_version: nil, duration: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, is_worker: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, path: nil, project_id: nil, provider: nil, resource: nil, service: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, status_code: nil, stream_type: nil, sub_resource: nil, success: nil, transport_type: nil, url: nil, user_agent: nil) ⇒ UnifiedLog

Returns a new instance of UnifiedLog.



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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/stack_one/models/shared/unifiedlog.rb', line 99

def initialize(log_id:, log_type:, request_id:, account_id: nil, action: nil, agent_id: nil, auth_id: nil, auth_type: nil, child_resource: nil, connector_key: nil, connector_owner: nil, connector_version: nil, duration: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, is_worker: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, path: nil, project_id: nil, provider: nil, resource: nil, service: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, status_code: nil, stream_type: nil, sub_resource: nil, success: nil, transport_type: nil, url: nil, user_agent: nil)
  @log_id = log_id
  @log_type = log_type
  @request_id = request_id
  @account_id = 
  @action = action
  @agent_id = agent_id
  @auth_id = auth_id
  @auth_type = auth_type
  @child_resource = child_resource
  @connector_key = connector_key
  @connector_owner = connector_owner
  @connector_version = connector_version
  @duration = duration
  @duration_ms = duration_ms
  @end_time = end_time
  @event_time = event_time
  @http_method = http_method
  @ip_address = ip_address
  @is_background = is_background
  @is_worker = is_worker
  @mode = mode
  @origin_owner_id = origin_owner_id
  @origin_owner_name = origin_owner_name
  @path = path
  @project_id = project_id
  @provider = provider
  @resource = resource
  @service = service
  @session_id = session_id
  @source_id = source_id
  @source_type = source_type
  @source_value = source_value
  @start_time = start_time
  @status = status
  @status_code = status_code
  @stream_type = stream_type
  @sub_resource = sub_resource
  @success = success
  @transport_type = transport_type
  @url = url
  @user_agent = user_agent
end

Instance Method Details

#==(other) ⇒ Object



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/stack_one/models/shared/unifiedlog.rb', line 144

def ==(other)
  return false unless other.is_a? self.class
  return false unless @log_id == other.log_id
  return false unless @log_type == other.log_type
  return false unless @request_id == other.request_id
  return false unless @account_id == other.
  return false unless @action == other.action
  return false unless @agent_id == other.agent_id
  return false unless @auth_id == other.auth_id
  return false unless @auth_type == other.auth_type
  return false unless @child_resource == other.child_resource
  return false unless @connector_key == other.connector_key
  return false unless @connector_owner == other.connector_owner
  return false unless @connector_version == other.connector_version
  return false unless @duration == other.duration
  return false unless @duration_ms == other.duration_ms
  return false unless @end_time == other.end_time
  return false unless @event_time == other.event_time
  return false unless @http_method == other.http_method
  return false unless @ip_address == other.ip_address
  return false unless @is_background == other.is_background
  return false unless @is_worker == other.is_worker
  return false unless @mode == other.mode
  return false unless @origin_owner_id == other.origin_owner_id
  return false unless @origin_owner_name == other.origin_owner_name
  return false unless @path == other.path
  return false unless @project_id == other.project_id
  return false unless @provider == other.provider
  return false unless @resource == other.resource
  return false unless @service == other.service
  return false unless @session_id == other.session_id
  return false unless @source_id == other.source_id
  return false unless @source_type == other.source_type
  return false unless @source_value == other.source_value
  return false unless @start_time == other.start_time
  return false unless @status == other.status
  return false unless @status_code == other.status_code
  return false unless @stream_type == other.stream_type
  return false unless @sub_resource == other.sub_resource
  return false unless @success == other.success
  return false unless @transport_type == other.transport_type
  return false unless @url == other.url
  return false unless @user_agent == other.user_agent
  true
end