frauddetector_get_event_types function

Gets all event types or a specific event type if name is provided