#NEWLINE# def RenderDetail( self , url , urlstatsdict , records_bytimestamp , detail ) : #NEWLINE# #INDENT# 'Renders detailed Appstats view of single request.\n\n    Args:\n      url: URL that is being drilled into.\n      urlstatsdict: A dictionary with keys being URL paths, and values\n        being URLStat objects.\n      records_bytimestamp: A dictionary. Each key is the timestamp of an\n        Appstats record (expressed in seconds). Each value is the\n        corresponding Appstats record (RequestStatProto protobuf).\n      detail: An index that can help identify which record is being\n        desired.\n    ' #NEWLINE# if ( url in urlstatsdict ) : #NEWLINE# #INDENT# urlstats = urlstatsdict [ url ] #NEWLINE# revindex = ( ( - detail ) - 1 ) #NEWLINE# ts = urlstats . urlrequestlist [ revindex ] . timestamp #NEWLINE# record = records_bytimestamp [ ts ] #NEWLINE# ui . render_record ( url . response , record )