combine GetEventByName and GetEventsByEnv into GetEvents