add a new parameter email_uptime_limit to only send emails in case uptime is below this limit