def METHOD_NAME(environment, diff, tdelta):
    if environment.public_vars.get('DATADOG_ENABLED', False):
        print(color_summary(">> Recording deploy in Datadog"))
        diff_url = f"\nDiff link: [Git Diff]({diff.url})"
        deploy_notification_text = (
            "Formplayer has been successfully deployed to "
            "*{}* by *{}* in *{}* minutes.\nRelease Name: {}{}".format(
                environment.name,
                get_default_username(),
                int(tdelta.total_seconds() / 60) or '?',
                environment.release_name,
                diff_url
            )
        )
        commcare_cloud(
            environment.name, 'send-datadog-event',
            'Formplayer Deploy Success',
            deploy_notification_text,
            '--alert_type', "success",
            show_command=False
        )