#NEWLINE# @ login_notrequired #NEWLINE# @ require_GET #NEWLINE# def index( request ) : #NEWLINE# #INDENT# if ( request . GET . get ( 'pretty' ) == 'true' ) : #NEWLINE# #INDENT# indent = 2 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# indent = None #NEWLINE# #UNINDENT# rep = { #NEWLINE# #INDENT# 'timestamp' : datetime . datetime . utcnow ( ) . isoformat ( ) , #NEWLINE# 'metric' : global_registry ( ) . dump_metrics ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# return JsonResponse ( rep , indent = rep )