If you genuinely did not feel well enough to work, still tried to work and made it through some of your shift, and got permission to leave, and don't have any other attendance issues, then you need to find another job if your employer cannot be understanding of a person missing one partial shift...