Skip to content

ml_workbench

Module contains all ML Workbench specific functionality.

ML_APP_ID_ENV module-attribute

ML_APP_ID_ENV = 'CELONIS_ML_APP_ID'

CELONIS_URL_ENV module-attribute

CELONIS_URL_ENV = 'CELONIS_URL'

CELONIS_API_TOKEN_ENV module-attribute

CELONIS_API_TOKEN_ENV = 'CELONIS_API_TOKEN'

CELONIS_KEY_TYPE_ENV module-attribute

CELONIS_KEY_TYPE_ENV = 'CELONIS_KEY_TYPE'

TRACKING_LOGGER module-attribute

TRACKING_LOGGER = 'pycelonis_tracking'

INTERNAL_TRACKING_LOGGER module-attribute

INTERNAL_TRACKING_LOGGER = 'pycelonis_internal_tracking'

SUPPORT_ID module-attribute

SUPPORT_ID = str(uuid4())

ML_APP_ID module-attribute

ML_APP_ID = get(ML_APP_ID_ENV, '')

URL module-attribute

URL = get(CELONIS_URL_ENV, '')

TEAM module-attribute

TEAM = _URL[0] if len(_URL) >= 1 else ''

ENV module-attribute

ENV = _URL[1] if len(_URL) >= 2 else ''

is_running_in_ml_workbench

is_running_in_ml_workbench()

Returns true if application is running within ML Workbench.

Returns:

  • bool

    Boolean specifying if application is running in ML Workbench.

setup_ml_workbench_logging

setup_ml_workbench_logging()

Sets up ML Workbench specific logging configuration.

setup_ml_workbench_tracking

setup_ml_workbench_tracking()

Sets up ML Workbench specific tracking in order to have logs available for support ticket process.