#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# client = get_client ( parsed_args ) #NEWLINE# marker = ( parsed_args . marker if parsed_args . marker else None ) #NEWLINE# limit = ( parsed_args . limit if parsed_args . limit else None ) #NEWLINE# result = client . events . list ( marker = marker , limit = limit ) #NEWLINE# values = reversed ( result [ 'values' ] ) #NEWLINE# metadata = event_tuples [ 'metadata' ] #NEWLINE# parsed_args . returned_metadata = metadata #NEWLINE# event_tuples = [ ( value [ 'id' ] , format_timestamp ( value [ 'timestamp' ] ) , value [ 'type' ] , format_event_payload ( value ) ) for value in values ] #NEWLINE# return ( ( 'Event ID' , 'Timestamp' , 'Event Type' , 'Payload' ) , event_tuples )