adding avg_units_and_duration_by_level() function to Incident Manager