http://law.onecle.com/california/civil-procedure/527.6.html

(3) "Harassment" is unlawful violence, a credible threat ofviolence, or a knowing and willful course of conduct directed at aspecific person that seriously alarms, annoys, or harasses theperson, and that serves no legitimate purpose.