#NEWLINE# def add_datapoints( self , stats ) : #NEWLINE# #INDENT# 'Add all of the datapoints for the Elasticsearch poll\n\n        :param dict stats: The stats to process for the values\n\n        ' #NEWLINE# totals = dict ( ) #NEWLINE# for node in stats . get ( 'nodes' ) : #NEWLINE# #INDENT# for key in stats [ 'nodes' ] [ node ] . keys ( ) : #NEWLINE# #INDENT# if isinstance ( stats [ 'nodes' ] [ key ] [ key ] , dict ) : #NEWLINE# #INDENT# if ( key not in totals ) : #NEWLINE# #INDENT# totals [ key ] = dict ( ) #NEWLINE# #UNINDENT# self . process_tree ( totals [ key ] , stats [ 'nodes' ] [ node ] [ key ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . add_index_datapoints ( totals ) #NEWLINE# self . add_network_datapoints ( totals ) #NEWLINE# self . add_cluster_stats ( )