def parse_basic_metric_options(config_obj, section):
infile = {}<EOL>aggr_hosts = None<EOL>aggr_metrics = None<EOL>ts_start = None<EOL>ts_end = None<EOL>precision = None<EOL>hostname = "<STR_LIT:localhost>"<EOL>rule_strings = {}<EOL>important_sub_metrics = None<EOL>anomaly_detection_metrics = None<EOL>try:<EOL><INDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>important_sub_metrics = config_obj.get(section, '<STR_LIT>').split()<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>hostname = config_obj.get(section, '<STR_LIT>')<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>infile = config_obj.get(section, '<STR_LIT>').split()<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>label = sanitize_string_section_name(section)<EOL>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>ts_start = get_standardized_timestamp(config_obj.get(section, '<STR_LIT>'), None)<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>ts_end = get_standardized_timestamp(config_obj.get(section, '<STR_LIT>'), None)<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>precision = config_obj.get(section, '<STR_LIT>')<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>aggr_hosts = config_obj.get(section, '<STR_LIT>')<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>aggr_metrics = config_obj.get(section, '<STR_LIT>')<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>if config_obj.has_option(section, '<STR_LIT>'):<EOL><INDENT>anomaly_detection_metrics = config_obj.get(section, '<STR_LIT>').split()<EOL>config_obj.remove_option(section, '<STR_LIT>')<EOL><DEDENT>rule_strings, other_options = get_rule_strings(config_obj, section)<EOL><DEDENT>except ConfigParser.NoOptionError:<EOL><INDENT>logger.exception("<STR_LIT>" + section)<EOL>sys.exit()<EOL><DEDENT>return (hostname, infile, aggr_hosts, aggr_metrics, label, ts_start, ts_end, precision, aggr_metrics, other_options,<EOL>rule_strings, important_sub_metrics, anomaly_detection_metrics)<EOL>
Parse basic options from metric sections of the config
:param config_obj: ConfigParser object
:param section: Section name
:return: all the parsed options