'Logs a client deployment attempt.
Args:
runtime: The runtime for the app being deployed.
start_time_usec: The start time of the deployment in micro seconds.
success: True if the deployment succeeded otherwise False.'

def LogClientDeploy(self, runtime, start_time_usec, success):

    if (not self.usage_reporting):
        logging.info('Skipping    usage    reporting.')
        return
    end_time_usec = self.GetCurrentTimeUsec()
    try:
        info = client_deployinfo.ClientDeployInfoExternal(runtime=runtime, start_time_usec=start_time_usec, end_time_usec=end_time_usec, requests=self.requests, success=success, sdk_version=self.GetSdkVersion())
        self.Send('/api/logclientdeploy', info.ToYAML())
    except BaseException as e:
        logging.debug('Exception    logging    deploy    info    continuing    -    %s', e)
