What exactly determines the criteria for Google Cloud Autohealing to decide an instance has failed and must be recreated to maintain service availability? Furthermore, this feature integrates deeply with Managed Instance Groups (MIGs) to monitor application health rather than just basic virtual machine heartbeats. How do you configure health check thresholds to prevent "flapping," where a service is repeatedly restarted due to overly aggressive monitoring settings?