from sentry.event_manager import EventManager # create an instance of EventManager event_manager = EventManager() # retrieve the data associated with an event with a given event_id event_id = "12345" event_data = event_manager.get_data(event_id)
from sentry.event_manager import get_event_manager # retrieve the EventManager instance for a given project project_id = "my_project" event_manager = get_event_manager(project_id) # retrieve the data associated with an event with a given event_id event_id = "67890" event_data = event_manager.get_data(event_id)In this example, we use the `get_event_manager()` function to retrieve the EventManager instance for a project with the ID `my_project`. We then use the `get_data()` method to retrieve the data associated with an event with the ID `67890`. Package/library: Sentry.