The Availability Group Preferred Replica alert triggers when the preferred replica defined for a database changes to a different replica in a set period of time.
For more information on configuring alerts and setting thresholds, see Configure alerts.