Class: Composio::LogsApi
- Inherits:
-
Object
- Object
- Composio::LogsApi
- Defined in:
- lib/composio/api/logs_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#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_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.
-
#initialize(api_client = ApiClient.default) ⇒ LogsApi
constructor
A new instance of LogsApi.
-
#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_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.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
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
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
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
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
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 |