She told the court: “I accept it was out of character and you lost self control.
“As a police officer, you were in a position of significant responsibility. (These actions) will reduce trust and confidence in police.”
Speaking after the trial, father-of-two Mr Attanayake, 42, originally from Sri Lanka, told the PA news agency the incident had left him with both psychological and physical damage.
He said: “I play cricket as a bowler, but I have been unable to play because of issues I now have with my shoulder. It will get better but I have missed two seasons already.
“Psychologically, I now get triggered by alarms and people in uniforms. I have been a law abiding citizen since I have lived in the UK.”
Mr Attanayake also confirmed he was yet to receive an apology from the Metropolitan Police, and claimed he had instead been told the incident was a case of “mistaken identity”.