TROY — Luna, the mixed-breed dog that faced euthanasia for biting another dog and a man in October, will not be put down and will be home for Christmas under a deal reached between her owner and the city Tuesday in Rensselaer County Court.

"I'm so excited. It's been a long couple of weeks," Luna's owner, Cade Saba, said after the court proceedings concluded.

County Court Judge Jennifer Sober vacated an earlier conviction sentencing the dog to death that was appealed from Troy City Court. That set in motion the agreement establishing requirements for Saba to meet and removing the dangerous dog designation from Luna.

Saba agreed to accept a ruling of adjourned in contemplation of dismissal to last two years without any additional problems with Luna. She also has to pay a $1,500 fine. As part of the agreement, Luna will also be spayed, microchipped and leashed with a muzzle when outside. The Mohawk Hudson Humane Society, represented by attorney Jonathan Schopf, which fought to save the dog's life with Margaret Donnelly, Saba's attorney, will pay the fine and carry out the medical procedures.

Mayor Patrick Madden's office issued a statement saying the city was glad to resolve the case, which Corporation Counsel James Caruso handled. "Today's resolution spares the dog's life and mandates the owner take additional steps to protect the public and other dogs."

Luna is expected to head home Wednesday from the humane society in Menands after the procedures are performed.

The humane society has taken care of Luna since the appeal was filed after a Troy City Court court judge's order in November to put down Luna.

The two sides hammered out their agreement regarding the 6-year-old dog's fate with Sober Tuesday morning in the judge's chambers before going into court. The decision Tuesday completed the negotiations that started last week.

Luna was originally ordered to be euthanized after a hearing in city court following an Oct. 26 incident in which she bit another dog and that animal's owner.

The bites Luna inflicted on an American Eskimo dog, and his owner, were described in court documents as minor injuries. When Luna bit the other dog it left bruises and cuts to his pelvis and abdomen area. The owner was bitten while trying to break up the dog fight, according to court records.