def event_list(consul_url=None, **kwargs):
 ret = {}
 query_params = {}
 if (not consul_url):
  consul_url = _get_config()
  if (not consul_url):
   log.error('No Consul URL found.')
   ret['message'] = 'No Consul URL found.'
   ret['res'] = False
   return ret
 if ('name' in kwargs):
  query_params = kwargs['name']
 else:
  raise SaltInvocationError('Required argument "name" is missing.')
 function = 'event/list/'
 ret = _query(consul_url=consul_url, query_params=query_params, function=function)
 return ret

def event_list ( consul_url = None , ** kwargs ) : ret = { } query_params = { } if ( not consul_url ) : consul_url = _get_config ( ) if ( not consul_url ) : log . error ( 'No Consul URL found.' ) ret [ 'message' ] = 'No Consul URL found.' ret [ 'res' ] = False return ret if ( 'name' in kwargs ) : query_params = kwargs [ 'name' ] else : raise SaltInvocationError ( 'Required argument "name" is missing.' ) function = 'event/list/' ret = _query ( consul_url = consul_url , query_params = query_params , function = function ) return ret
list the recent events .