#NEWLINE# @ classmethod #NEWLINE# def from_json( cls , metrics ) : #NEWLINE# #INDENT# 'Converts a legacy json object into a list of MonitorMetric objs\n        and finally returns of MonitorMetricList\n\n        :param metrics: a string of json serialized objects\n        :returns: a MonitorMetricList Object.\n        ' #NEWLINE# metrics = ( jsonutils . loads ( metrics ) if metrics else [ ] ) #NEWLINE# metric_list = [ ] #NEWLINE# for metric in metrics : #NEWLINE# #INDENT# if ( ( 'value' in metric ) and ( metric [ 'name' ] in FIELDS_REQUIRING_CONVERSION ) ) : #NEWLINE# #INDENT# metric [ 'value' ] = ( metric [ 'value' ] * 100 ) #NEWLINE# #UNINDENT# metric_list . append ( MonitorMetric ( ** metric ) ) #NEWLINE# #UNINDENT# return MonitorMetricList ( objects = metric_list )