raise(event) {
        if (!this.events.has(event.id)) {
            if (this.events.size >= LIMIT) {
                this.events.delete(this.events.keys().next()?.value);
            }
        }

        this.events.set(event.id, event);
        this.eventEmitter.emit(EVENT_RAISED, event);
        this.eventEmitter.emit(EVENTS_UPDATED, event);
    }
@public
@param {import("./valetudo_events/events/ValetudoEvent")} event