lib/composio/api/logs_api.rb in composio-0.1.15 vs lib/composio/api/logs_api.rb in composio-0.1.16

- old
+ new

@@ -24,16 +24,20 @@ # @param action_name [String] Action name of the log # @param request [Object] # @param response [Object] # @param is_error [Boolean] # @param connection_id [String] Connection ID of the log + # @param session_id [String] Session ID of the log + # @param logs_type [String] Type of the log # @param entity_id [String] Entity ID of the log # @param body [IngestDataDTO] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def add_new_logs(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, entity_id: SENTINEL, extra: {}) + 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 @@ -51,16 +55,20 @@ # @param action_name [String] Action name of the log # @param request [Object] # @param response [Object] # @param is_error [Boolean] # @param connection_id [String] Connection ID of the log + # @param session_id [String] Session ID of the log + # @param logs_type [String] Type of the log # @param entity_id [String] Entity ID of the log # @param body [IngestDataDTO] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def add_new_logs_with_http_info(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, entity_id: SENTINEL, extra: {}) + 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 @@ -145,21 +153,23 @@ # @param integration_id [String] # @param entity_id [String] # @param limit [Float] # @param cursor [String] # @param logs_type [String] + # @param session_id [String] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, extra: {}) + 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 # Get logs @@ -173,21 +183,23 @@ # @param integration_id [String] # @param entity_id [String] # @param limit [Float] # @param cursor [String] # @param logs_type [String] + # @param session_id [String] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - 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, extra: {}) + 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 # Get logs # List logs @@ -199,10 +211,11 @@ # @option opts [String] :integration_id # @option opts [String] :entity_id # @option opts [Float] :limit (default to 10) # @option opts [String] :cursor # @option opts [String] :logs_type + # @option opts [String] :session_id # @return [LogsResDTO] private def list_impl(opts = {}) data, _status_code, _headers = list_with_http_info(opts) data end @@ -217,10 +230,11 @@ # @option opts [String] :integration_id # @option opts [String] :entity_id # @option opts [Float] :limit (default to 10) # @option opts [String] :cursor # @option opts [String] :logs_type + # @option opts [String] :session_id # @return [APIResponse] data is LogsResDTO, status code, headers and response private def list_with_http_info_impl(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsApi.list ...' end @@ -248,9 +262,10 @@ query_params[:'integrationId'] = opts[:'integration_id'] if !opts[:'integration_id'].nil? query_params[:'entityId'] = opts[:'entity_id'] if !opts[:'entity_id'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil? query_params[:'logsType'] = opts[:'logs_type'] if !opts[:'logs_type'].nil? + query_params[:'sessionId'] = opts[:'session_id'] if !opts[:'session_id'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json'])