code: def generate_logtail_config(json_value):
          
          logger.warning("aliyun.log.LogtailConfigHelper is deprecated and will be removed in future version."
                        "Use LogtailConfigGenerator instead")
  
          if json_value['inputDetail']['logType'] == 'apsara_log':
              return LogtailConfigHelper.generate_apsara_log_config(json_value)
          return LogtailConfigHelper.generate_common_reg_log_config(json_value)
docs: Generate logtail config from loaded json value
  
          :param json_value:
          :return: