How to use the hdijupyterutils.constants.EVENT_NAME function in hdijupyterutils

To help you get started, we’ve selected a few hdijupyterutils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyter-incubator / sparkmagic / sparkmagic / sparkmagic / utils / sparkevents.py View on Github external
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)