def create_event(self, event_params):
self.clean_error()<EOL>self.prepare_token()<EOL>try:<EOL><INDENT>url = self.get_url(Constants.CREATE_EVENT_URL)<EOL>response = self.execute_call('<STR_LIT>', url, json=event_params)<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>return self.handle_operation_response(response)<EOL><DEDENT>else:<EOL><INDENT>self.error = str(response.status_code)<EOL>self.error_description = self.extract_error_message_from_response(response)<EOL>self.error_attribute = self.extract_error_attribute_from_response(response)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>self.error = <NUM_LIT><EOL>self.error_description = e.args[<NUM_LIT:0>]<EOL><DEDENT>return False<EOL>
Create an event in the OneLogin event log.

:param event_params: Event data (event_type_id, account_id, actor_system,
                                 actor_user_id, actor_user_name, app_id,
                                 assuming_acting_user_id, custom_message,
                                 directory_sync_run_id, group_id, group_name,
                                 ipaddr, otp_device_id, otp_device_name,
                                 policy_id, policy_name, role_id, role_name,
                                 user_id, user_name)
:type event_params: dict

Returns if the action succeed
:return: true if success
:rtype: bool

See https://developers.onelogin.com/api-docs/1/events/create-event Create Event documentation