check engine alert flashes on and off. what could be problem? on 2003 Cadillac DeVille

alert came on solid and went off then came on and off and flashes. engine runs rough at idle. could this be serious? having it checked tomorrow. anything to be alarmed about?

Asked by for the 2003 Cadillac DeVille
scan test it for codes