Class: Composio::LogsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/composio/api/logs_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ LogsApi

Returns a new instance of LogsApi.



15
16
17
# File 'lib/composio/api/logs_api.rb', line 15

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



13
14
15
# File 'lib/composio/api/logs_api.rb', line 13

def api_client
  @api_client
end

Instance Method Details

#add_new_logs(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, session_id: SENTINEL, logs_type: SENTINEL, entity_id: SENTINEL, extra: {}) ⇒ Object

Post logs

Add new logs

Parameters:

  • provider_name (String)

    Provider name of the log

  • action_name (String)

    Action name of the log

  • request (Object)
  • response (Object)
  • is_error (Boolean)
  • connection_id (String) (defaults to: SENTINEL)

    Connection ID of the log

  • session_id (String) (defaults to: SENTINEL)

    Session ID of the log

  • logs_type (String) (defaults to: SENTINEL)

    Type of the log

  • entity_id (String) (defaults to: SENTINEL)

    Entity ID of the log

  • body (IngestDataDTO)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/composio/api/logs_api.rb', line 34

def add_new_logs(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, session_id: SENTINEL, logs_type: SENTINEL, entity_id: SENTINEL, extra: {})
  _body = {}
  _body[:connectionId] = connection_id if connection_id != SENTINEL
  _body[:sessionId] = session_id if session_id != SENTINEL
  _body[:logsType] = logs_type if logs_type != SENTINEL
  _body[:entityId] = entity_id if entity_id != SENTINEL
  _body[:providerName] = provider_name if provider_name != SENTINEL
  _body[:actionName] = action_name if action_name != SENTINEL
  _body[:request] = request if request != SENTINEL
  _body[:response] = response if response != SENTINEL
  _body[:isError] = is_error if is_error != SENTINEL
  extra[:ingest_data_dto] = _body if !_body.empty?
  api_response = add_new_logs_with_http_info_impl(extra)
  api_response.data
end

#add_new_logs_with_http_info(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, session_id: SENTINEL, logs_type: SENTINEL, entity_id: SENTINEL, extra: {}) ⇒ Object

Post logs

Add new logs

Parameters:

  • provider_name (String)

    Provider name of the log

  • action_name (String)

    Action name of the log

  • request (Object)
  • response (Object)
  • is_error (Boolean)
  • connection_id (String) (defaults to: SENTINEL)

    Connection ID of the log

  • session_id (String) (defaults to: SENTINEL)

    Session ID of the log

  • logs_type (String) (defaults to: SENTINEL)

    Type of the log

  • entity_id (String) (defaults to: SENTINEL)

    Entity ID of the log

  • body (IngestDataDTO)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/composio/api/logs_api.rb', line 65

def add_new_logs_with_http_info(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, session_id: SENTINEL, logs_type: SENTINEL, entity_id: SENTINEL, extra: {})
  _body = {}
  _body[:connectionId] = connection_id if connection_id != SENTINEL
  _body[:sessionId] = session_id if session_id != SENTINEL
  _body[:logsType] = logs_type if logs_type != SENTINEL
  _body[:entityId] = entity_id if entity_id != SENTINEL
  _body[:providerName] = provider_name if provider_name != SENTINEL
  _body[:actionName] = action_name if action_name != SENTINEL
  _body[:request] = request if request != SENTINEL
  _body[:response] = response if response != SENTINEL
  _body[:isError] = is_error if is_error != SENTINEL
  extra[:ingest_data_dto] = _body if !_body.empty?
  add_new_logs_with_http_info_impl(extra)
end

#list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, session_id: SENTINEL, extra: {}) ⇒ Object

Get logs

List logs

Parameters:

  • type (String) (defaults to: SENTINEL)
  • time (String) (defaults to: SENTINEL)
  • status (String) (defaults to: SENTINEL)
  • search (String) (defaults to: SENTINEL)
  • integration_id (String) (defaults to: SENTINEL)
  • entity_id (String) (defaults to: SENTINEL)
  • limit (Float) (defaults to: 10)
  • cursor (String) (defaults to: SENTINEL)
  • logs_type (String) (defaults to: SENTINEL)
  • session_id (String) (defaults to: SENTINEL)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



160
161
162
163
164
165
166
167
168
169
170
171
172
173
# File 'lib/composio/api/logs_api.rb', line 160

def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, session_id: SENTINEL, extra: {})
  extra[:type] = type if type != SENTINEL
  extra[:time] = time if time != SENTINEL
  extra[:status] = status if status != SENTINEL
  extra[:search] = search if search != SENTINEL
  extra[:integration_id] = integration_id if integration_id != SENTINEL
  extra[:entity_id] = entity_id if entity_id != SENTINEL
  extra[:limit] = limit if limit != SENTINEL
  extra[:cursor] = cursor if cursor != SENTINEL
  extra[:logs_type] = logs_type if logs_type != SENTINEL
  extra[:session_id] = session_id if session_id != SENTINEL
  api_response = list_with_http_info_impl(extra)
  api_response.data
end

#list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, session_id: SENTINEL, extra: {}) ⇒ Object

Get logs

List logs

Parameters:

  • type (String) (defaults to: SENTINEL)
  • time (String) (defaults to: SENTINEL)
  • status (String) (defaults to: SENTINEL)
  • search (String) (defaults to: SENTINEL)
  • integration_id (String) (defaults to: SENTINEL)
  • entity_id (String) (defaults to: SENTINEL)
  • limit (Float) (defaults to: 10)
  • cursor (String) (defaults to: SENTINEL)
  • logs_type (String) (defaults to: SENTINEL)
  • session_id (String) (defaults to: SENTINEL)
  • extra (Hash) (defaults to: {})

    additional parameters to pass along through :header_params, :query_params, or parameter name



190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/composio/api/logs_api.rb', line 190

def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, session_id: SENTINEL, extra: {})
  extra[:type] = type if type != SENTINEL
  extra[:time] = time if time != SENTINEL
  extra[:status] = status if status != SENTINEL
  extra[:search] = search if search != SENTINEL
  extra[:integration_id] = integration_id if integration_id != SENTINEL
  extra[:entity_id] = entity_id if entity_id != SENTINEL
  extra[:limit] = limit if limit != SENTINEL
  extra[:cursor] = cursor if cursor != SENTINEL
  extra[:logs_type] = logs_type if logs_type != SENTINEL
  extra[:session_id] = session_id if session_id != SENTINEL
  list_with_http_info_impl(extra)
end