From 23a4db7eb749ecb219081d824def16814e9e6060 Mon Sep 17 00:00:00 2001 From: xue an guo <759802940@qq.com> Date: Thu, 28 Dec 2023 14:31:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=85=A2=E6=9F=A5=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=8A=A5=E9=94=99:"=E6=9C=AA=E7=9F=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E8=AF=B7=E8=81=94=E7=B3=BB=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E5=A4=84=E7=90=86"=20(#2471)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 导入get_engine Co-authored-by: xueanguo --- sql/slowlog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/slowlog.py b/sql/slowlog.py index d87f31597d..ae51f7ed7d 100644 --- a/sql/slowlog.py +++ b/sql/slowlog.py @@ -11,6 +11,7 @@ from pyecharts.charts import Line from pyecharts import options as opts from common.utils.chart_dao import ChartDao +from sql.engines import get_engine from sql.utils.resource_group import user_instances from common.utils.extend_json_encoder import ExtendJSONEncoder @@ -44,7 +45,7 @@ def slowquery_review(request): # 调用阿里云慢日志接口 query_engine = get_engine(instance=instance_info) result = query_engine.slowquery_review( - self, start_time, end_time, db_name, limit, offset + start_time, end_time, db_name, limit, offset ) else: limit = offset + limit