Please don't feel ashamed, beating yourself up will only fuel your depression.
I'm guessing you felt there was no other way out other than to end it and to think like that you couldn't have been mentally well. So please be kind to yourself, you have an illness and you need to heal.
Do you find it helps being around others who are also struggling? I'm only asking because I did. In my real life I felt so alone and that everyone was coping and I was so weak I couldn't manage like everyone else.
I really admire your courage to reach out and try and get help, living with depression is so so hard. Good for you.