The Availability Group Role Change alert indicates when the primary role changes to a secondary replica. Alert includes affected databases for the entire availability group.
For more information on configuring alerts and setting thresholds, see Configure alerts.