The retired nurse had faced up to 10 years in prison. Her plea agreement called for an attempted murder charge to be dropped.

Maricopa County Superior Court Judge Robert Gottsfield said Vogel could serve the jail time on weekends, the Arizona Republic reported. He also sentenced her to four years of probation.

Authorities say two nurses saw Vogel tampering with her husband's IV line while he was in the hospital for a heart stent procedure.

A lab test later determined a substance found in the line was fecal matter. Police also say they found three syringes in Vogel's purse, and one had a brown substance on a protective cap.

Her husband survived the contamination after becoming ill.

Vogel said during the sentencing hearing that she was sleep-deprived and depressed when she contaminated the line and had no recollection of it.

"I've always loved my husband through sickness and in health," she said.

Her husband, Phillip Vogel, said he has forgiven his wife. The two suggested their relationship is on the mend.

"It's so devastating on our family," he said. "Rose Mary is no danger to me."

Defense lawyer Lawrence Kazan has said in court records that his client had what appeared to be a fairly happy 35-year marriage. But he said there were unspecified problems that caused her to snap and try to harm her husband.

Vogel is a retired registered nurse who has surrendered her nursing license to medical regulators. Kazan noted she had no prior criminal history.