def _get_names(self, collector):
desc_func = None<EOL>try:<EOL><INDENT>desc_func = collector.describe<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>if not desc_func and self._auto_describe:<EOL><INDENT>desc_func = collector.collect<EOL><DEDENT>if not desc_func:<EOL><INDENT>return []<EOL><DEDENT>result = []<EOL>type_suffixes = {<EOL>'<STR_LIT>': ['<STR_LIT>', '<STR_LIT>'],<EOL>'<STR_LIT>': ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'],<EOL>'<STR_LIT>': ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'],<EOL>'<STR_LIT>': ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>'],<EOL>'<STR_LIT:info>': ['<STR_LIT>'],<EOL>}<EOL>for metric in desc_func():<EOL><INDENT>for suffix in type_suffixes.get(metric.type, ['<STR_LIT>']):<EOL><INDENT>result.append(metric.name + suffix)<EOL><DEDENT><DEDENT>return result<EOL>
Get names of timeseries the collector produces.