def METHOD_NAME(event):
    """This is the 'trigger' for the event e.g. broadcast, conditional-alert etc."""
    parent = event.parent
    return {
        "source_id": parent.source_id,
        "type": MessagingEvent.SOURCE_SLUGS.get(parent.source, 'unknown'),
        "name": get_event_display_api(parent),
    }