def __init__(self, settings, event_type, **event_structures):
    self.settings = settings
    self.type = event_type
    self.structures = {}
    for (structure_name, fields) in event_structures.items():
        self.structures[structure_name] = EventStructuresFactory.make(settings, structure_name, fields)
    self.structures_convert_lock = threading.RLock()
    self.id = sha256(f'{self.type}-{json.dumps(event_structures, sort_keys=True)}'.encode()).hexdigest()
def __init__(self, settings, event_type, **event_structures):
    self.settings = settings
    self.type = event_type
    self.structures = {}
    for (structure_name, fields) in event_structures.items():
        self.structures[structure_name] = EventStructuresFactory.make(settings, structure_name, fields)
    self.structures_convert_lock = threading.RLock()
    self.id = sha256(f'{self.type}-{json.dumps(event_structures, sort_keys=True)}'.encode()).hexdigest()