Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def emit_session_deletion_end_event(self, session_guid, language, session_id, status,
success, exception_type, exception_message):
self._verify_language_ok(language)
event_name = constants.SESSION_DELETION_END_EVENT
time_stamp = self.get_utc_date_time()
kwargs_list = [(EVENT_NAME, event_name),
(TIMESTAMP, time_stamp),
(constants.SESSION_GUID, session_guid),
(constants.LIVY_KIND, language),
(constants.SESSION_ID, session_id),
(constants.STATUS, status),
(constants.SUCCESS, success),
(constants.EXCEPTION_TYPE, exception_type),
(constants.EXCEPTION_MESSAGE, exception_message)]
self.send_to_handler(kwargs_list)