getAlerts with range