def send_deploy_event(module, key, revision_id, deployed_by='Ansible', deployed_to=None, repository=None):
 deploy_api = 'https://event-gateway.stackdriver.com/v1/deployevent'
 params = {}
 params['revision_id'] = revision_id
 params['deployed_by'] = deployed_by
 if deployed_to:
  params['deployed_to'] = deployed_to
 if repository:
  params['repository'] = repository
 return do_send_request(module, deploy_api, params, key)

def send_deploy_event ( module , key , revision_id , deployed_by = 'Ansible' , deployed_to = None , repository = None ) : deploy_api = 'https://event-gateway.stackdriver.com/v1/deployevent' params = { } params [ 'revision_id' ] = revision_id params [ 'deployed_by' ] = deployed_by if deployed_to : params [ 'deployed_to' ] = deployed_to if repository : params [ 'repository' ] = repository return do_send_request ( module , deploy_api , params , key )
send a deploy event to stackdriver .