handlers.athereon_handler

class AthereonHandler(handlers.eventhandler.EventHandler):

Fully configurable single-direction LeanIX > Athereon Connector.
Configuration settings should be self-explanatory. In case of any issues, please contact Aronis support.

AthereonHandler(config, **kwargs)
name = 'Athereon Connector'
description = 'Synchronizes LeanIX Fact Sheets to Athereon.'
conditions = {'event_types': ['FactSheetCreatedEvent', 'FactSheetUpdatedEvent', 'FactSheetArchivedEvent'], 'fs_types': ['UserGroup', 'Application', 'Process', 'DataObject']}
config_template = {'tenant': 1, 'mapping': {'UserGroup': {'displayName': 'name', 'description': 'description', 'str:Resource': 'resourcetype', 'location': 'location', 'subscription:Business Contact': 'responsible', 'relation:Application': 'child'}, 'Application': {'displayName': 'name', 'description': 'description', 'str:Application': 'resourcetype', 'subscription:Business Contact': 'responsible', 'businessCriticality': 'custom_data:BusinessCriticality', 'relation:Process': 'child'}, 'Process': {'displayName': 'name', 'description': 'description', 'str:Process': 'resourcetype', 'tag:processCriticality': 'custom_data:ProcessCriticality', 'relation:DataObject': 'child'}, 'DataObject': {'displayName': 'name', 'description': 'description', 'str:Information': 'resourcetype', 'tag:data_classification': 'classification', 'contentType': 'custom_data:ContentType'}}, 'external_id': 'externalId', 'api_endpoint': 'https://backend.staging.demo.athereon.tech/api/v3/', 'api_token': 'my_token'}
mapping
external_id
record
mode
scope
def handle(self, event, fs, **kwargs):

Called automatically whenever a relevant event comes in via webhook.

def update_attributes(self, fs):
def create_record(self, fs):
def get_update_transactions(self, fs):
def delete_record(self, ext_id):
def get_remote_user(self, mail):
def get_external_id(self, fs):
def is_relevant(self, fs):