<s> import json <EOL> from boundary import MetricCommon <EOL> from six . moves import http_client <EOL> class MetricList ( MetricCommon ) : <EOL> def __init__ ( self ) : <EOL> MetricCommon . __init__ ( self ) <EOL> self . path = "<STR_LIT>" <EOL> self . cli_description = "<STR_LIT>" <EOL> def getDescription ( self ) : <EOL> """<STR_LIT>""" <EOL> return "<STR_LIT>" <EOL> def handleResults ( self , result ) : <EOL> if result . status_code == http_client . OK : <EOL> metrics = json . loads ( result . text ) <EOL> m = [ ] <EOL> for metric in metrics [ '<STR_LIT:result>' ] : <EOL> new_metric = self . extractFields ( metric ) <EOL> m . append ( new_metric ) <EOL> metrics [ '<STR_LIT:result>' ] = m <EOL> out = json . dumps ( metrics , sort_keys = True , indent = <NUM_LIT:4> , separators = ( '<STR_LIT:U+002C>' , '<STR_LIT>' ) ) <EOL> print ( out ) </s>
