This script will generate the alert , if the website performance goes under the preferred limit.
Website_url = r"www.google.com" #Give your Website url without https/http
preferred_speed=750 #Give your website performance value in milliseconds. (You can find the average value by the command 'ping website_url' in command prompt)
Please run this as Custom monitoring script.
Please refer this wiki guide to use custom monitoring script: