#NEWLINE# def stats( self , check_name , start , end ) : #NEWLINE# #INDENT# app_code = self . check_id ( check_name ) #NEWLINE# params = { #NEWLINE# #INDENT# 'includeuptime' : 'true' , #NEWLINE# 'from' : time . mktime ( start . timetuple ( ) ) , #NEWLINE# 'to' : time . mktime ( end . timetuple ( ) ) , #NEWLINE# 'resolution' : 'hour' , #NEWLINE# #UNINDENT# } #NEWLINE# path = ( 'summary.performance/' + str ( app_code ) ) #NEWLINE# try : #NEWLINE# #INDENT# return self . _build_response ( self . _make_request ( path = path , url_params = params ) ) #NEWLINE# #UNINDENT# except requests_with_backoff . exceptions . HTTPError as e : #NEWLINE# #INDENT# logging . error ( ( 'Request to pingdom failed: %s' % str ( e ) ) , extra = extra_fields_from_exception ( e ) )