(alert)
Sends an alert to #support and email to let support know when a domain is doing something weird

    :param alert: AbnormalUsageAlert object
Sends an alert to #support and email to let support know when a domain is doing something weird
Sends an alert to #support and email to let support know when a domain is doing something weird
def send_abnormal_usage_alert(alert):
    """ Sends an alert to #support and email to let support know when a domain is doing something weird

    :param alert: AbnormalUsageAlert object
    """

    subject = "{domain} is doing something interesting with the {source} in the {environment} env".format(
        domain=alert.domain,
        source=alert.source,
        environment=settings.SERVER_ENVIRONMENT
    )
    send_html_email_async(
        subject,
        settings.SUPPORT_EMAIL,
        alert.message
    )
def send_abnormal_usage_alert ( alert ) : subject = "{domain} is doing something interesting with the {source} in the {environment} env" . format ( domain = alert . domain , source = alert . source , environment = settings . SERVER_ENVIRONMENT ) send_html_email_async ( subject , settings . SUPPORT_EMAIL , alert . message )