def _list(self, path, dim_key=None, **kwargs):
url_str = self.base_url + path<EOL>if dim_key and dim_key in kwargs:<EOL><INDENT>dim_str = self.get_dimensions_url_string(kwargs[dim_key])<EOL>kwargs[dim_key] = dim_str<EOL><DEDENT>if kwargs:<EOL><INDENT>url_str += '<STR_LIT>' % parse.urlencode(kwargs, True)<EOL><DEDENT>body = self.client.list(<EOL>path=url_str<EOL>)<EOL>return self._parse_body(body)<EOL>
Get a list of metrics.