def METHOD_NAME(instance, user_agent, ip, wsone_event):
    raw_event = {"request": {"user_agent": user_agent,
                             "ip": ip},
                 "observer": instance.observer_dict(),
                 "wsone_instance": {"pk": instance.pk,
                                    "version": instance.version},
                 "wsone_event": wsone_event}
    queues.post_raw_event("wsone_events", raw_event)