A mother-of-five drove home drunk from a garda station, then headbutted an officer who arrested her.
Adele Kenny (40) had earlier threatened to kill the garda and told another: "Your ma will die roaring for having you."
Dublin District Court heard she was upset as her father had died that day.
Judge Bryan Smyth sentenced her to three months in jail, fined her €200 and banned her from driving for four years.
Kenny, of Monasterboice Road, Crumlin, pleaded guilty to assaulting, obstructing and making a threat to kill Garda Edel Noone at Crumlin Garda Station.
She also admitted failing to provide a blood or urine sample at Terenure Garda Station, dangerous driving and urinating in public.
Dublin District Court heard the incidents happened on December 2, 2014.
Garda Jason Carroll said Kenny told Gda Noone: "You will be sorry for what you have done, watch your f***ing back."
She sat down and said she was having a protest, repeating: "Shame, shame, shame on you."
Outside, she sat on the steps and urinated. She grabbed Gda Carroll and said: "Your ma will die roaring for having you."
She then left, got into her nearby car and sped off at 90kph in a 50kph zone. When stopped, she lashed out at gardai with her feet and fists.
She kicked at Gda Carroll and headbutted Gda Noone.
When asked for a sample, she shouted "Sorry garda, I can't hear you", and sat on the floor.
Kenny had consumed an inordinate amount of alcohol and the incident was out of character, her lawyer said.
Judge Smyth said he had no option but to give Kenny a prison sentence. He set bail terms in the event of an appeal.