#NEWLINE# def _JSONMetricValue( self , metric_info , value ) : #NEWLINE# #INDENT# if ( metric_info . metric_type == stats . MetricType . EVENT ) : #NEWLINE# #INDENT# return dict ( sum = value . sum , counter = value . count , bins = value . bins , bins_heights = collections . OrderedDict ( metric_info . bins_heights ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return value